Hoogle Search
Within Stackage Nightly 2025-10-07 (ghc-9.12.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
swizzleSet :: String -> String -> DecsQswizzle-set Data.SwizzleSet.TH No documentation available.
parseTimeOfDay :: Text -> Either String TimeOfDaytext-iso8601 Data.Time.FromText Parse a time of the form HH:MM[:SS[.SSS]].
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).