TemporalZ

toZonedDateTimeISO

Returns a ZonedDateTime representing this instant in the specified time zone using the ISO 8601 calendar system.

See: Temporal.Instant.toZonedDateTimeISO

Parameters

#
self:Instant
Instant
zone:TimeZone
TimeZone

Source

Implementation

#
pub fn toZonedDateTimeISO(self: Instant, zone: TimeZone) !ZonedDateTime {
    const ptr = (try abi.extractResult(abi.c.temporal_rs_Instant_to_zoned_date_time_iso(self._inner, zone._inner))) orelse return abi.TemporalError.Generic;
    return .{ ._inner = ptr };
}