Expand description
The Temporal.Now object has several methods which give information about
the current date, time, and time zone.
Functions§
- instant
- The
Temporal.Now.instant()static method returns the current exact time as aTemporal.Instant. - plain_
date_ iso - The
Temporal.Now.plainDateISO()static method returns the current date as aTemporal.PlainDatein the ISO 8601 calendar and the system’s current time zone. - plain_
date_ iso_ with_ time_ zone - The
Temporal.Now.plainDateISO()static method returns the current date as aTemporal.PlainDatein the ISO 8601 calendar and the given time zone. - plain_
date_ iso_ with_ zoned_ date_ time Temporal.Now.plainDateISO()in the time zone of the givenTemporal.ZonedDateTime.- plain_
date_ time_ iso - The
Temporal.Now.plainDateTimeISO()static method returns the current date and wall-clock time as aTemporal.PlainDateTimein the ISO 8601 calendar and the system’s current time zone. - plain_
date_ time_ iso_ with_ time_ zone - The
Temporal.Now.plainDateTimeISO()static method returns the current date and wall-clock time as aTemporal.PlainDateTimein the ISO 8601 calendar and the given time zone. - plain_
date_ time_ iso_ with_ zoned_ date_ time Temporal.Now.plainDateTimeISO()in the time zone of the givenTemporal.ZonedDateTime.- plain_
time_ iso - The
Temporal.Now.plainTimeISO()static method returns the current wall-clock time as aTemporal.PlainTimein the system’s current time zone. - plain_
time_ iso_ with_ time_ zone - The
Temporal.Now.plainTimeISO()static method returns the current wall-clock time as aTemporal.PlainTimein the given time zone. - plain_
time_ iso_ with_ zoned_ date_ time Temporal.Now.plainTimeISO()in the time zone of the givenTemporal.ZonedDateTime.- time_
zone_ id - The
Temporal.Now.timeZoneId()static method returns the identifier of the system’s current time zone. - zoned_
date_ time_ iso - The
Temporal.Now.zonedDateTimeISO()static method returns the current date and time as aTemporal.ZonedDateTimein the ISO 8601 calendar and the system’s current time zone. - zoned_
date_ time_ iso_ with_ time_ zone - The
Temporal.Now.zonedDateTimeISO()static method returns the current date and time as aTemporal.ZonedDateTimein the ISO 8601 calendar and the given time zone. - zoned_
date_ time_ iso_ with_ zoned_ date_ time Temporal.Now.zonedDateTimeISO()in the time zone of the givenTemporal.ZonedDateTime.