TemporalZ

Now

The Temporal.Now namespace object contains static methods for getting the current time in various formats. All properties and methods are static.

See: Temporal.Now

Functions

#
instant

Returns the current time as a Temporal.Instant object.

plainDateISO

Returns the current date as a Temporal.PlainDate object, in the ISO 8601 calendar and the specified time zone.

plainDateTimeISO

Returns the current date and time as a Temporal.PlainDateTime object, in the ISO 8601 calendar and the specified time zone.

plainTimeISO

Returns the current time as a Temporal.PlainTime object, in the specified time zone.

timeZoneId

Returns a time zone identifier representing the system's current time zone.

zonedDateTimeISO

Returns the current date and time as a Temporal.ZonedDateTime object, in the ISO 8601 calendar and the specified time zone.