Safe Haskell | None |
---|
Data.Time.Parsers.Types
- 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
Methods
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
Methods
toZonedTime :: a -> ZonedTimeSource
Flags to tune the behavior of a parser
Constructors
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
Constructors
Timestamp a | An explicit Timestamp |
Now | The current time |
Yesterday | Midnight yesterday |
Today | Midnight today |
Tomorrow | Midight tomorrow |
Instances
Eq a => Eq (ExtendedTimestamp a) | |
Show a => Show (ExtendedTimestamp a) |