Hoogle Search

Within LTS Haskell 24.34 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. parseTimeOfDay :: Text -> Either String TimeOfDay

    text-iso8601 Data.Time.FromText

    Parse a time of the form HH:MM[:SS[.SSS]].

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

  3. parseTAIUTCDAT :: ByteString -> Either String TAIUTCMap

    thyme Data.Thyme.Clock.TAI

    No documentation available.

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

  5. class ParseTime t

    thyme Data.Thyme.Format

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

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

  7. timeZoneOffsetString :: TimeZone -> String

    thyme Data.Thyme.LocalTime

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

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

  9. parseT :: forall e a . (Parse a, Textual e) => Text -> Either e a

    ttc Data.TTC

    Parse from strict Text

  10. parseTL :: forall e a . (Parse a, Textual e) => Text -> Either e a

    ttc Data.TTC

    Parse from lazy Text

Page 148 of many | Previous | Next