- class FromZonedTime a where
- fromZonedTime :: ZonedTime -> a
- class ToZonedTime a where
- toZonedTime :: a -> ZonedTime
- data DateFormat
- data Flag
- data Options = Options {}
- type OptionedParser a = ReaderT Options Parser a
- data DateToken
- data ExtendedTimestamp a
Documentation
class FromZonedTime a whereSource
A type that can be converted from ZonedTime
fromZonedTime :: ZonedTime -> aSource
class ToZonedTime a whereSource
A type that can be converted to ZonedTime For LocalTime, it is assumed the TimeZone is UTC For Day, it is assumed that the TimeOfDay is midnight and the TimeZone is UTC
toZonedTime :: a -> ZonedTimeSource
data DateFormat Source
Formats for purely numeric dates, e.g. 99-2-27
Flags to tune the behavior of a parser
MakeRecent | Interpret years 0-99 as 1970-2069 |
DefaultToMidnight | If no TimeOfDay is supplied for a type where it is required, use midnight |
DefaultToUTC | If no timezone is supplied for a type where it is required, use UTC |
RequirePosixUnit | Require an |
AustralianTimeZones | Use Australian Timezones |
type OptionedParser a = ReaderT Options Parser aSource
A Parser with Options
data ExtendedTimestamp a Source
Timestamp a | An explicit Timestamp |
Now | The current time |
Yesterday | Midnight yesterday |
Today | Midnight today |
Tomorrow | Midight tomorrow |
Eq a => Eq (ExtendedTimestamp a) | |
Show a => Show (ExtendedTimestamp a) |