Now

external object Now(source)

Functions

Link copied to clipboard

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

Link copied to clipboard
fun plainDate(calendar: CalendarLike, tzLike: TimeZoneLike? = definedExternally): PlainDate

Get the current calendar date in a specific calendar and time zone.

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

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

Link copied to clipboard
fun plainDateTime(calendar: CalendarLike, tzLike: TimeZoneLike? = definedExternally): PlainDateTime

Get the current calendar date and clock time in a specific calendar and time zone.

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

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

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

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

Link copied to clipboard

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

Link copied to clipboard
fun zonedDateTime(calendar: CalendarLike, tzLike: TimeZoneLike? = definedExternally): ZonedDateTime

Get the current calendar date and clock time in a specific calendar and time zone.

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

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