added timeStringToMinutesOfDay