Skip to main content

zoned_date_time_iso_with_time_zone

Function zoned_date_time_iso_with_time_zone 

Source
pub fn zoned_date_time_iso_with_time_zone(
    time_zone: &str,
) -> Result<ZonedDateTime, RangeError>
Expand description

The Temporal.Now.zonedDateTimeISO() static method returns the current date and time as a Temporal.ZonedDateTime in the ISO 8601 calendar and the given time zone.

ยงErrors

Throws a RangeError if time_zone is not a valid time zone identifier.

MDN Documentation