Haskell Core Libraries (base package)ParentContentsIndex
System.Time
Portability portable
Stability provisional
Maintainer libraries@haskell.org
Description
The standard Time library.
data Month
Constructors
January
February
March
April
May
June
July
August
September
October
November
December
data Day
Constructors
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
data ClockTime
Constructors
TOD Integer Integer
Instances
Show ClockTime
getClockTime :: IO ClockTime
data TimeDiff
Constructors
TimeDiff
tdYear :: Int
tdMonth :: Int
tdDay :: Int
tdHour :: Int
tdMin :: Int
tdSec :: Int
tdPicosec :: Integer
noTimeDiff :: TimeDiff
diffClockTimes :: ClockTime -> ClockTime -> TimeDiff
addToClockTime :: TimeDiff -> ClockTime -> ClockTime
normalizeTimeDiff :: TimeDiff -> TimeDiff
timeDiffToString :: TimeDiff -> String
formatTimeDiff :: TimeLocale -> String -> TimeDiff -> String
data CalendarTime
Constructors
CalendarTime
ctYear :: Int
ctMonth :: Month
ctDay :: Int
ctHour :: Int
ctMin :: Int
ctSec :: Int
ctPicosec :: Integer
ctWDay :: Day
ctYDay :: Int
ctTZName :: String
ctTZ :: Int
ctIsDST :: Bool
toCalendarTime :: ClockTime -> IO CalendarTime
toUTCTime :: ClockTime -> CalendarTime
toClockTime :: CalendarTime -> ClockTime
calendarTimeToString :: CalendarTime -> String
formatCalendarTime :: TimeLocale -> String -> CalendarTime -> String
Produced by Haddock version 0.4