zonedDateTime
fun zonedDateTime(calendar: CalendarLike, tzLike: TimeZoneLike? = definedExternally): ZonedDateTime(source)
Get the current calendar date and clock time in a specific calendar and time zone.
The calendar
parameter is required. When using the ISO 8601 calendar or if you don't understand the need for or implications of a calendar, then a more ergonomic alternative to this method is Temporal.Now.zonedDateTimeISO()
.
Parameters
{TimeZoneLike} tzLike - {@link https://en.wikipedia.org/wiki/List_of_tz_database_time_zones|IANA time zone identifier} string (e.g. 'Europe/London'
), Temporal.TimeZone
instance, or an object implementing the time zone protocol. If omitted, the environment's current time zone will be used.