Skip to main content

plain_date_time_iso_with_time_zone

Function plain_date_time_iso_with_time_zone 

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

The Temporal.Now.plainDateTimeISO() static method returns the current date and wall-clock time as a Temporal.PlainDateTime 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