Hoogle Search
Within Stackage Nightly 2025-10-08 (ghc-9.12.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
parseTimeZone :: Text -> Either String TimeZonetext-iso8601 Data.Time.FromText Parse a time zone. The accepted formats are Z, +HH, +HHMM, or +HH:MM. (+ can be -). Accepts -23:59..23:59 range, i.e. HH < 24 and MM < 59. (This is consistent with grammar, and with what Python, Clojure, joda-time do).
parseTAIUTCDAT :: ByteString -> Either String TAIUTCMapthyme Data.Thyme.Clock.TAI No documentation available.
parseTAIUTCRow :: Parser (UTCTime, TAIUTCRow)thyme Data.Thyme.Clock.TAI attoparsec Parser for a single line of tai-utc.dat. Returns the starting UTCTime and the normalised TAIUTCRow.
-
thyme Data.Thyme.Format All instances of this class may be parsed by parseTime, readTime, and readsTime.
parseTime :: ParseTime t => TimeLocale -> String -> String -> Maybe tthyme Data.Thyme.Format Parse a string as a ParseTime instance value. Return Nothing if parsing fails.
Examples
ISO 8601
> parseTime defaultTimeLocale "%Y-%m-%dT%H:%M:%S%N" "2015-01-15T12:34:56+00:00" :: Maybe UTCTime Just 2015-01-15 12:34:56 UTC > parseTime defaultTimeLocale "%Y-%m-%dT%H:%M:%S%N" "2015-01-15T12:34:56-12:00" :: Maybe UTCTime Just 2015-01-16 00:34:56 UTC
YYYY-MM-DD hh:mm:ss.0
> parseTime defaultTimeLocale "%Y-%m-%d %H:%M:%S%Q" "2015-01-15 12:34:56.78" :: Maybe UTCTime Just 2015-01-15 12:34:56.78 UTC
timeZoneOffsetString :: TimeZone -> Stringthyme Data.Thyme.LocalTime Text representing the offset of this timezone, e.g. "-0800" or "+0400" (like %z in formatTime)
timeZoneOffsetStringColon :: TimeZone -> Stringthyme Data.Thyme.LocalTime Text representing the offset of this timezone in ISO 8601 style, e.g. "-08:00" or "+04:00" (like %N in formatTime)
Format_Tz_Offset :: TimeFormatElemtime-hourglass Data.Hourglass Timezone offset in minutes (for example, 120, +120 or -120).
-
time-hourglass Data.Hourglass Type representing offsets in minutes against UTC to obtain local time from UTC. A positive number represents a location east of where UTC is local time and a negative number represents a location west of where UTC is local time. LocalTime t (-300) -- t represents a time at UTC-5 LocalTime t (+480) -- t represents a time at UTC+8 Should be between (-12 * 60) and (+14 * 60). For example, in timezone AEDT (Australian Eastern Daylight Time) (UTC+11), local time is 15:47. Consequently, UTC time is 04:47 and the timezone offset is TimezoneOffset 660 (in minutes).
TimezoneOffset :: Int -> TimezoneOffsettime-hourglass Data.Hourglass No documentation available.