Safe Haskell | Safe-Infered |
---|
Data.Time.LocalTime.TimeZone
Contents
- data TimeZone = TimeZone {}
- timeZoneOffsetString :: TimeZone -> String
- timeZoneOffsetString' :: NumericPadOption -> TimeZone -> String
- minutesToTimeZone :: Int -> TimeZone
- hoursToTimeZone :: Int -> TimeZone
- utc :: TimeZone
- getTimeZone :: UTCTime -> IO TimeZone
- getCurrentTimeZone :: IO TimeZone
Time zones
A TimeZone is a whole number of minutes offset from UTC, together with a name and a "just for summer" flag.
Constructors
TimeZone | |
Fields
|
timeZoneOffsetString :: TimeZone -> StringSource
Text representing the offset of this timezone, such as "-0800" or "+0400" (like %z in formatTime)
timeZoneOffsetString' :: NumericPadOption -> TimeZone -> StringSource
Text representing the offset of this timezone, such as "-0800" or "+0400" (like %z in formatTime), with arbitrary padding
minutesToTimeZone :: Int -> TimeZoneSource
Create a nameless non-summer timezone for this number of minutes
hoursToTimeZone :: Int -> TimeZoneSource
Create a nameless non-summer timezone for this number of hours
getTimeZone :: UTCTime -> IO TimeZoneSource
Get the local time-zone for a given time (varying as per summertime adjustments)
getCurrentTimeZone :: IO TimeZoneSource
Get the current time-zone