-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Command-line option types for dates and times. -- -- Command-line option types for dates and times. @package options-time @version 1.0 -- | The options-time package provides OptionType -- implementations and associated SimpleOption instances for -- types related to dates and times. module Options.Time -- | Store an option as a DiffTime. The duration is specified in a -- format such as "2h30m" for two hours and thirty minutes. -- -- Available units are: -- -- -- -- Larger units are not available to avoid ambiguity when dealing with -- daylight savings time. optionType_duration :: OptionType DiffTime -- | Store an option as a Day. Supported formats are: -- -- optionType_date :: OptionType Day -- | Store an option as a TimeOfDay. Supported formats are: -- -- -- -- For example, the value "10:11:12.5" is half a second past -- 10:11:12 AM. optionType_time :: OptionType TimeOfDay -- | Store an option as a LocalTime. Supported formats are a -- combination of those for optionType_date and -- optionType_time. optionType_localTime :: OptionType LocalTime -- | Store an option as a UTCTime. Supported formats are a -- combination of those for optionType_date and -- optionType_time. optionType_utcTime :: OptionType UTCTime -- | Store an option as a ZonedTime. Supported formats are a -- combination of those for optionType_date and -- optionType_time. optionType_zonedTime :: OptionType ZonedTime instance SimpleOptionType ZonedTime instance SimpleOptionType UTCTime instance SimpleOptionType LocalTime instance SimpleOptionType TimeOfDay instance SimpleOptionType Day instance SimpleOptionType DiffTime