Module
Temporal.Display
- Package
- purescript-temporal
- Repository
- philippedev101/purescript-temporal
Timezone-aware display helpers.
Convenience functions for converting instants to local representations and getting the current date/time in a specific timezone.
#toLocal Source
toLocal :: String -> Instant -> PlainDateTimeConvert an Instant to a PlainDateTime in the given IANA time zone.
Shorthand for toPlainDateTime (toZonedDateTimeISO tz inst).
toLocal "America/New_York" instant -- wall-clock time in New York
toLocal "Asia/Tokyo" instant -- wall-clock time in Tokyo
#toLocalDate Source
toLocalDate :: String -> Instant -> PlainDateConvert an Instant to a PlainDate in the given IANA time zone.
#toLocalTime Source
toLocalTime :: String -> Instant -> PlainTimeConvert an Instant to a PlainTime in the given IANA time zone.
- Modules
- Temporal.
Diff - Temporal.
Display - Temporal.
Duration - Temporal.
Duration. Extra - Temporal.
Format. Html - Temporal.
Instant - Temporal.
Instant. Extra - Temporal.
Internal. Options - Temporal.
Internal. Types - Temporal.
Internal. Unsafe - Temporal.
Interval - Temporal.
Interval. Duration - Temporal.
Interval. Set - Temporal.
Now - Temporal.
PlainDate - Temporal.
PlainDate. Boundary - Temporal.
PlainDate. Extra - Temporal.
PlainDate. Weekday - Temporal.
PlainDateTime - Temporal.
PlainDateTime. Extra - Temporal.
PlainMonthDay - Temporal.
PlainTime - Temporal.
PlainTime. Extra - Temporal.
PlainYearMonth - Temporal.
PlainYearMonth. Extra - Temporal.
Predicate - Temporal.
TimeDuration - Temporal.
ZonedDateTime - Temporal.
ZonedDateTime. Boundary - Temporal.
ZonedDateTime. Extra