Closed tomjaguarpaw closed 5 years ago
Currently the API has
timeToTimeOfDay :: DiffTime -> TimeOfDay
timeOfDayToTime :: TimeOfDay -> DiffTime
I think these would be clearer written
pastMidnight :: DiffTime -> TimeOfDay
sinceMidnight :: TimeOfDay -> DiffTime
What do you think? Could these be added as aliases?
Fixed for 1.10.
Thanks!
Currently the API has
timeToTimeOfDay :: DiffTime -> TimeOfDay
(Get the time of day given a time since midnight. Time more than 24h will be converted to leap-seconds), andtimeOfDayToTime :: TimeOfDay -> DiffTime
(Get the time since midnight for a given time of day.)I think these would be clearer written
pastMidnight :: DiffTime -> TimeOfDay
, andsinceMidnight :: TimeOfDay -> DiffTime
What do you think? Could these be added as aliases?