darcs-2.18.2: a distributed, interactive, smart revision control system

Safe Haskell | None
Language | Haskell2010

Darcs.Util.DateTime

Synopsis

- getCurrentTime :: IO UTCTime
- toSeconds :: UTCTime -> Integer
- formatDateTime :: String -> UTCTime -> String
- fromClockTime :: ClockTime -> UTCTime
- parseDateTime :: String -> String -> Maybe UTCTime
- startOfTime :: UTCTime

# Documentation

getCurrentTime :: IO UTCTime #

Get the current `UTCTime` from the system clock.

toSeconds :: UTCTime -> Integer #

formatDateTime :: String -> UTCTime -> String #

fromClockTime :: ClockTime -> UTCTime #

parseDateTime :: String -> String -> Maybe UTCTime #

startOfTime :: UTCTime #