Skip to main content

plain_date_iso_with_time_zone

Function plain_date_iso_with_time_zone 

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

The Temporal.Now.plainDateISO() static method returns the current date as a Temporal.PlainDate 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