removed time_to_ampm and time_to_hhmm function