Now

object Now(source)

Functions

Link copied to clipboard
external fun instant(): Instant

Get the exact system date and time as a Temporal.Instant.

Link copied to clipboard
external fun plainDateISO(tzLike: TimeZone? = definedExternally): PlainDate

Get the current date in a specific time zone, using the ISO 8601 calendar.

Link copied to clipboard
external fun plainDateTimeISO(tzLike: TimeZone? = definedExternally): PlainDateTime

Get the current date and clock time in a specific time zone, using the ISO 8601 calendar.

Link copied to clipboard
external fun plainTimeISO(tzLike: TimeZone? = definedExternally): PlainTime

Get the current clock time in a specific time zone, using the ISO 8601 calendar.

Link copied to clipboard
external fun timeZoneId(): String

Get the identifier of the environment's current time zone.

Link copied to clipboard
external fun zonedDateTimeISO(tzLike: TimeZone? = definedExternally): ZonedDateTime

Get the current calendar date and clock time in a specific time zone, using the ISO 8601 calendar.