Data.Time.Format.ISO8601.Compat

time-compat-1.9.6.1: Compatibility package for time

Safe Haskell | Trustworthy
Language | Haskell2010

Data.Time.Format.ISO8601.Compat

Contents

- Format
- Common formats
- All formats

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
  - = 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
- 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

data Format t #

#### Instances

Instances details

IsoVariant Format |
Instance details Defined in Data.Format Methods isoMap :: (a -> b) -> (b -> a) -> Format a -> Format b
Productish Format |
Instance details Defined in Data.Format Methods pUnit :: Format () (<**>) :: Format a -> Format b -> Format (a, b) (**>) :: Format () -> Format a -> Format a (<**) :: Format a -> Format () -> Format a
Summish Format |
Instance details Defined in Data.Format Methods pVoid :: Format Void (<++>) :: Format a -> Format b -> Format (Either a b)

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

class ISO8601 t where #

Methods

iso8601Format :: Format t #

#### Instances

Instances details

ISO8601 CalendarDiffDays |
Instance details Defined in Data.Time.Format.ISO8601 Methods iso8601Format :: Format CalendarDiffDays #
ISO8601 Day |
Instance details Defined in Data.Time.Format.ISO8601 Methods iso8601Format :: Format Day #
ISO8601 UTCTime |
Instance details Defined in Data.Time.Format.ISO8601 Methods iso8601Format :: Format UTCTime #
ISO8601 CalendarDiffTime |
Instance details Defined in Data.Time.Format.ISO8601 Methods iso8601Format :: Format CalendarDiffTime #
ISO8601 LocalTime |
Instance details Defined in Data.Time.Format.ISO8601 Methods iso8601Format :: Format LocalTime #
ISO8601 TimeOfDay |
Instance details Defined in Data.Time.Format.ISO8601 Methods iso8601Format :: Format TimeOfDay #
ISO8601 TimeZone |
Instance details Defined in Data.Time.Format.ISO8601 Methods iso8601Format :: Format TimeZone #
ISO8601 ZonedTime |
Instance details Defined in Data.Time.Format.ISO8601 Methods iso8601Format :: Format ZonedTime #

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 #

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