Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
A text format for a type
formatShowM :: Format t -> t -> Maybe String Source
Show a value in the format, if representable
formatShow :: Format t -> t -> String Source
Show a value in the format, or error if unrepresentable
formatReadP :: Format t -> ReadP t Source
Read a value in the format
formatParseM :: MonadFail m => Format t -> String -> m t Source
Parse a value in the format
ISO8601 CalendarDiffDays |
|
Defined in Data.Time.Format.ISO8601 Methods | |
ISO8601 Day |
|
Defined in Data.Time.Format.ISO8601 Methods | |
ISO8601 UTCTime |
|
Defined in Data.Time.Format.ISO8601 Methods | |
ISO8601 CalendarDiffTime |
|
Defined in Data.Time.Format.ISO8601 Methods | |
ISO8601 TimeZone |
|
Defined in Data.Time.Format.ISO8601 Methods | |
ISO8601 TimeOfDay |
|
Defined in Data.Time.Format.ISO8601 Methods | |
ISO8601 LocalTime |
|
Defined in Data.Time.Format.ISO8601 Methods | |
ISO8601 ZonedTime |
|
Defined in Data.Time.Format.ISO8601 Methods |
iso8601Show :: ISO8601 t => t -> String Source
Show in the most commonly used ISO 8601 format.
iso8601ParseM :: (MonadFail m, ISO8601 t) => String -> m t Source
Parse the most commonly used ISO 8601 format.
data FormatExtension Source
ExtendedFormat | ISO 8601:2004(E) sec. 2.3.4. Use hyphens and colons. |
BasicFormat | ISO 8601:2004(E) sec. 2.3.3. Omit hyphens and colons. "The basic format should be avoided in plain text." |
formatReadPExtension :: (FormatExtension -> Format t) -> ReadP t Source
Read a value in either extended or basic format
parseFormatExtension :: MonadFail m => (FormatExtension -> Format t) -> String -> m t Source
Parse a value in either extended or basic format
calendarFormat :: FormatExtension -> Format Day Source
ISO 8601:2004(E) sec. 4.1.2.2
yearMonthFormat :: Format (Integer, Int) Source
ISO 8601:2004(E) sec. 4.1.2.3(a)
yearFormat :: Format Integer Source
ISO 8601:2004(E) sec. 4.1.2.3(b)
centuryFormat :: Format Integer Source
ISO 8601:2004(E) sec. 4.1.2.3(c)
expandedCalendarFormat :: Int -> FormatExtension -> Format Day Source
ISO 8601:2004(E) sec. 4.1.2.4(a)
expandedYearMonthFormat :: Int -> Format (Integer, Int) Source
ISO 8601:2004(E) sec. 4.1.2.4(b)
expandedYearFormat :: Int -> Format Integer Source
ISO 8601:2004(E) sec. 4.1.2.4(c)
expandedCenturyFormat :: Int -> Format Integer Source
ISO 8601:2004(E) sec. 4.1.2.4(d)
ordinalDateFormat :: FormatExtension -> Format Day Source
ISO 8601:2004(E) sec. 4.1.3.2
expandedOrdinalDateFormat :: Int -> FormatExtension -> Format Day Source
ISO 8601:2004(E) sec. 4.1.3.3
weekDateFormat :: FormatExtension -> Format Day Source
ISO 8601:2004(E) sec. 4.1.4.2
yearWeekFormat :: FormatExtension -> Format (Integer, Int) Source
ISO 8601:2004(E) sec. 4.1.4.3
expandedWeekDateFormat :: Int -> FormatExtension -> Format Day Source
ISO 8601:2004(E) sec. 4.1.4.2
expandedYearWeekFormat :: Int -> FormatExtension -> Format (Integer, Int) Source
ISO 8601:2004(E) sec. 4.1.4.3
timeOfDayFormat :: FormatExtension -> Format TimeOfDay Source
ISO 8601:2004(E) sec. 4.2.2.2, 4.2.2.4(a)
hourMinuteFormat :: FormatExtension -> Format TimeOfDay Source
ISO 8601:2004(E) sec. 4.2.2.3(a), 4.2.2.4(b)
hourFormat :: Format TimeOfDay Source
ISO 8601:2004(E) sec. 4.2.2.3(b), 4.2.2.4(c)
withTimeDesignator :: Format t -> Format t Source
ISO 8601:2004(E) sec. 4.2.2.5
withUTCDesignator :: Format t -> Format t Source
ISO 8601:2004(E) sec. 4.2.4
timeOffsetFormat :: FormatExtension -> Format TimeZone Source
ISO 8601:2004(E) sec. 4.2.5.1
timeOfDayAndOffsetFormat :: FormatExtension -> Format (TimeOfDay, TimeZone) Source
ISO 8601:2004(E) sec. 4.2.5.2
localTimeFormat :: Format Day -> Format TimeOfDay -> Format LocalTime Source
ISO 8601:2004(E) sec. 4.3.2
zonedTimeFormat :: Format Day -> Format TimeOfDay -> FormatExtension -> Format ZonedTime Source
ISO 8601:2004(E) sec. 4.3.2
utcTimeFormat :: Format Day -> Format TimeOfDay -> Format UTCTime Source
ISO 8601:2004(E) sec. 4.3.2
dayAndTimeFormat :: Format Day -> Format time -> Format (Day, time) Source
ISO 8601:2004(E) sec. 4.3.3
timeAndOffsetFormat :: Format t -> FormatExtension -> Format (t, TimeZone) Source
ISO 8601:2004(E) sec. 4.3.3
durationDaysFormat :: Format CalendarDiffDays Source
ISO 8601:2004(E) sec. 4.4.3.2
durationTimeFormat :: Format CalendarDiffTime Source
ISO 8601:2004(E) sec. 4.4.3.2
alternativeDurationDaysFormat :: FormatExtension -> Format CalendarDiffDays Source
ISO 8601:2004(E) sec. 4.4.3.3
alternativeDurationTimeFormat :: FormatExtension -> Format CalendarDiffTime Source
ISO 8601:2004(E) sec. 4.4.3.3
intervalFormat :: Format a -> Format b -> Format (a, b) Source
ISO 8601:2004(E) sec. 4.4.4.1
recurringIntervalFormat :: Format a -> Format b -> Format (Int, a, b) Source
ISO 8601:2004(E) sec. 4.5
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/8.8.3/docs/html/libraries/time-1.9.3/Data-Time-Format-ISO8601.html