centralize parseTime() pattern