| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Data.HodaTime.OffsetDateTime
Contents
- data OffsetDateTime cal
- fromInstantWithOffset :: IsCalendarDateTime cal => Instant -> Offset -> OffsetDateTime cal
- fromCalendarDateTimeWithOffset :: CalendarDateTime cal -> Offset -> OffsetDateTime cal
Types
data OffsetDateTime cal Source #
A CalendarDateTime with a UTC offset. This is the format used by e.g. HTTP. This type has a fixed TimeZone with the name "UTC(+/-)offset". If the offset is
empty, the name of the TimeZone will be UTC
Instances
| Eq (OffsetDateTime cal) Source # | |
| Show (OffsetDateTime cal) Source # | |
Constructors
fromInstantWithOffset :: IsCalendarDateTime cal => Instant -> Offset -> OffsetDateTime cal Source #
Create an OffsetDateTime from an Instant and an Offset.
fromCalendarDateTimeWithOffset :: CalendarDateTime cal -> Offset -> OffsetDateTime cal Source #
Create an OffsetDateTime from a CalendarDateTime and an Offset.