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.Instantobject.- plainDateISO
Returns the current date as a
Temporal.PlainDateobject, in the ISO 8601 calendar and the specified time zone.- plainDateTimeISO
Returns the current date and time as a
Temporal.PlainDateTimeobject, in the ISO 8601 calendar and the specified time zone.- plainTimeISO
Returns the current time as a
Temporal.PlainTimeobject, 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.ZonedDateTimeobject, in the ISO 8601 calendar and the specified time zone.