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

Safe HaskellSafe
LanguageHaskell98

BuildBox.Time

Description

Time utils useful for writing buildbots.

Synopsis

Documentation

module Data.Time

readLocalTimeOfDayAsUTC :: String -> IO TimeOfDay Source #

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 String Source #

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

getMidnightTodayLocal :: IO LocalTime Source #

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

getMidnightTodayUTC :: IO UTCTime Source #

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

getMidnightTomorrowLocal :: IO LocalTime Source #

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

getMidnightTomorrowUTC :: IO UTCTime Source #

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