Module

JS.Temporal.Now

Package
purescript-js-temporal
Repository
pete-murphy/purescript-js-temporal

Methods to obtain the current time in various formats. Corresponds to the Temporal.Now namespace. All functions run in Effect and use the system's current time.

See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Now

#instant Source

instant :: Effect Instant

The current instant (nanoseconds since epoch).

#zonedDateTimeISO Source

zonedDateTimeISO :: Effect ZonedDateTime

Current date and time in the system's local time zone.

#zonedDateTimeISOIn Source

zonedDateTimeISOIn :: String -> Effect ZonedDateTime

Current date and time in the given time zone.

#plainDateISO Source

plainDateISO :: Effect PlainDate

Current date in the system's local time zone.

#plainDateISOIn Source

plainDateISOIn :: String -> Effect PlainDate

Current date in the given time zone.

#plainDateTimeISO Source

plainDateTimeISO :: Effect PlainDateTime

Current date and time in the system's local time zone (plain, no zone).

#plainDateTimeISOIn Source

plainDateTimeISOIn :: String -> Effect PlainDateTime

Current date and time in the given time zone (plain, no zone).

#plainTimeISO Source

plainTimeISO :: Effect PlainTime

Current time in the system's local time zone.

#plainTimeISOIn Source

plainTimeISOIn :: String -> Effect PlainTime

Current time in the given time zone.

#timeZoneId Source

timeZoneId :: Effect String

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