Safe Haskell | Trustworthy |
---|---|
Language | Haskell2010 |
Data.Time.Format.ISO8601.Compat
Contents
Synopsis
- data Format t
- formatShowM :: Format t -> t -> Maybe String
- formatShow :: Format t -> t -> String
- formatReadP :: Format t -> ReadP t
- formatParseM :: MonadFail m => Format t -> String -> m t
- class ISO8601 t where
- iso8601Format :: Format t
- iso8601Show :: ISO8601 t => t -> String
- iso8601ParseM :: (MonadFail m, ISO8601 t) => String -> m t
- data FormatExtension
- formatReadPExtension :: (FormatExtension -> Format t) -> ReadP t
- parseFormatExtension :: MonadFail m => (FormatExtension -> Format t) -> String -> m t
- calendarFormat :: FormatExtension -> Format Day
- yearMonthFormat :: Format (Integer, Int)
- yearFormat :: Format Integer
- centuryFormat :: Format Integer
- expandedCalendarFormat :: Int -> FormatExtension -> Format Day
- expandedYearMonthFormat :: Int -> Format (Integer, Int)
- expandedYearFormat :: Int -> Format Integer
- expandedCenturyFormat :: Int -> Format Integer
- ordinalDateFormat :: FormatExtension -> Format Day
- expandedOrdinalDateFormat :: Int -> FormatExtension -> Format Day
- weekDateFormat :: FormatExtension -> Format Day
- yearWeekFormat :: FormatExtension -> Format (Integer, Int)
- expandedWeekDateFormat :: Int -> FormatExtension -> Format Day
- expandedYearWeekFormat :: Int -> FormatExtension -> Format (Integer, Int)
- timeOfDayFormat :: FormatExtension -> Format TimeOfDay
- hourMinuteFormat :: FormatExtension -> Format TimeOfDay
- hourFormat :: Format TimeOfDay
- withTimeDesignator :: Format t -> Format t
- withUTCDesignator :: Format t -> Format t
- timeOffsetFormat :: FormatExtension -> Format TimeZone
- timeOfDayAndOffsetFormat :: FormatExtension -> Format (TimeOfDay, TimeZone)
- localTimeFormat :: Format Day -> Format TimeOfDay -> Format LocalTime
- zonedTimeFormat :: Format Day -> Format TimeOfDay -> FormatExtension -> Format ZonedTime
- utcTimeFormat :: Format Day -> Format TimeOfDay -> Format UTCTime
- dayAndTimeFormat :: Format Day -> Format time -> Format (Day, time)
- timeAndOffsetFormat :: Format t -> FormatExtension -> Format (t, TimeZone)
- durationDaysFormat :: Format CalendarDiffDays
- durationTimeFormat :: Format CalendarDiffTime
- alternativeDurationDaysFormat :: FormatExtension -> Format CalendarDiffDays
- alternativeDurationTimeFormat :: FormatExtension -> Format CalendarDiffTime
- intervalFormat :: Format a -> Format b -> Format (a, b)
- recurringIntervalFormat :: Format a -> Format b -> Format (Int, a, b)
Format
Instances
IsoVariant Format | |
Defined in Data.Format | |
Productish Format | |
Summish Format | |
formatShowM :: Format t -> t -> Maybe String #
formatShow :: Format t -> t -> String #
formatReadP :: Format t -> ReadP t #
formatParseM :: MonadFail m => Format t -> String -> m t #
Common formats
Methods
iso8601Format :: Format t #
Instances
ISO8601 CalendarDiffDays | |
Defined in Data.Time.Format.ISO8601 Methods | |
ISO8601 Day | |
Defined in Data.Time.Format.ISO8601 Methods iso8601Format :: Format Day # | |
ISO8601 UTCTime | |
Defined in Data.Time.Format.ISO8601 Methods | |
ISO8601 CalendarDiffTime | |
Defined in Data.Time.Format.ISO8601 Methods | |
ISO8601 LocalTime | |
Defined in Data.Time.Format.ISO8601 Methods | |
ISO8601 TimeOfDay | |
Defined in Data.Time.Format.ISO8601 Methods | |
ISO8601 TimeZone | |
Defined in Data.Time.Format.ISO8601 Methods | |
ISO8601 ZonedTime | |
Defined in Data.Time.Format.ISO8601 Methods |
iso8601Show :: ISO8601 t => t -> String #
iso8601ParseM :: (MonadFail m, ISO8601 t) => String -> m t #
All formats
data FormatExtension #
Constructors
ExtendedFormat | |
BasicFormat |
formatReadPExtension :: (FormatExtension -> Format t) -> ReadP t #
parseFormatExtension :: MonadFail m => (FormatExtension -> Format t) -> String -> m t #
calendarFormat :: FormatExtension -> Format Day #
yearMonthFormat :: Format (Integer, Int) #
yearFormat :: Format Integer #
centuryFormat :: Format Integer #
expandedCalendarFormat :: Int -> FormatExtension -> Format Day #
expandedYearMonthFormat :: Int -> Format (Integer, Int) #
expandedYearFormat :: Int -> Format Integer #
expandedCenturyFormat :: Int -> Format Integer #
expandedOrdinalDateFormat :: Int -> FormatExtension -> Format Day #
weekDateFormat :: FormatExtension -> Format Day #
yearWeekFormat :: FormatExtension -> Format (Integer, Int) #
expandedWeekDateFormat :: Int -> FormatExtension -> Format Day #
expandedYearWeekFormat :: Int -> FormatExtension -> Format (Integer, Int) #
withTimeDesignator :: Format t -> Format t #
withUTCDesignator :: Format t -> Format t #
zonedTimeFormat :: Format Day -> Format TimeOfDay -> FormatExtension -> Format ZonedTime #
timeAndOffsetFormat :: Format t -> FormatExtension -> Format (t, TimeZone) #
intervalFormat :: Format a -> Format b -> Format (a, b) #
recurringIntervalFormat :: Format a -> Format b -> Format (Int, a, b) #