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.

  1. parseTimeZone :: Text -> Either String TimeZone

    text-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).

  2. parseTAIUTCDAT :: ByteString -> Either String TAIUTCMap

    thyme Data.Thyme.Clock.TAI

    No documentation available.

  3. 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.

  4. class ParseTime t

    thyme Data.Thyme.Format

    All instances of this class may be parsed by parseTime, readTime, and readsTime.

  5. parseTime :: ParseTime t => TimeLocale -> String -> String -> Maybe t

    thyme 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
    

  6. timeZoneOffsetString :: TimeZone -> String

    thyme Data.Thyme.LocalTime

    Text representing the offset of this timezone, e.g. "-0800" or "+0400" (like %z in formatTime)

  7. timeZoneOffsetStringColon :: TimeZone -> String

    thyme 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)

  8. Format_Tz_Offset :: TimeFormatElem

    time-hourglass Data.Hourglass

    Timezone offset in minutes (for example, 120, +120 or -120).

  9. newtype TimezoneOffset

    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).

  10. TimezoneOffset :: Int -> TimezoneOffset

    time-hourglass Data.Hourglass

    No documentation available.

Page 141 of many | Previous | Next