Extract the time from an ID.