Module

Temporal.Now

Package
purescript-temporal
Repository
philippedev101/purescript-temporal

Access the current date, time, and time zone from the system clock.

All functions in this module perform effects (reading the system clock). Functions without an In suffix use the system's default time zone. Functions with an In suffix take an IANA time zone name.

#instant Source

instant :: Effect Instant

The current instant (exact moment on the UTC timeline).

#zonedDateTimeISO Source

zonedDateTimeISO :: Effect ZonedDateTime

The current date and time in the system's default time zone.

#zonedDateTimeISOIn Source

zonedDateTimeISOIn :: String -> Effect ZonedDateTime

The current date and time in the given IANA time zone.

#plainDateTimeISO Source

plainDateTimeISO :: Effect PlainDateTime

The current date and time (no timezone) in the system's default time zone.

#plainDateTimeISOIn Source

plainDateTimeISOIn :: String -> Effect PlainDateTime

The current date and time (no timezone) in the given IANA time zone.

#plainDateISO Source

plainDateISO :: Effect PlainDate

The current date in the system's default time zone.

#plainDateISOIn Source

plainDateISOIn :: String -> Effect PlainDate

The current date in the given IANA time zone.

#plainTimeISO Source

plainTimeISO :: Effect PlainTime

The current time in the system's default time zone.

#plainTimeISOIn Source

plainTimeISOIn :: String -> Effect PlainTime

The current time in the given IANA time zone.

#timeZoneId Source

timeZoneId :: Effect String

The system's default IANA time zone identifier (e.g. "America/New_York").