buildbox-1.3.0.1: Rehackable components for writing buildbots and test harnesses.

BuildBox.Time

Description

Time utils useful for writing buildbots.

Synopsis

Documentation

module Data.Time

readLocalTimeOfDayAsUTC :: String -> IO TimeOfDaySource

Read a time of day string like 17:34:05 in the local time zone and convert that to a UTC time of day. Good for parsing command line args to buildbots.

getStampyTime :: IO StringSource

Get a local time stamp with format YYYYMMDD_HHMMSS. Good for naming files with.

getMidnightTodayLocal :: IO LocalTimeSource

Get the local midnight we've just had as a LocalTime.

getMidnightTodayUTC :: IO UTCTimeSource

Get the local midnight that we've just had, as a UTCTime.

getMidnightTomorrowLocal :: IO LocalTimeSource

Get the local midnight we're about to have as a LocalTime.

getMidnightTomorrowUTC :: IO UTCTimeSource

Get the local midnight we're about to have as a UTCTime.