TemporalZ

fromEpochMilliseconds

Creates a new ZonedDateTime from the given epoch milliseconds and time zone.

Parameters

#
epoch_ms:i64
i64
time_zone:TimeZone
TimeZone

Source

Implementation

#
pub fn fromEpochMilliseconds(epoch_ms: i64, time_zone: TimeZone) !ZonedDateTime {
    return wrapZonedDateTime(abi.c.temporal_rs_ZonedDateTime_from_epoch_milliseconds(epoch_ms, abi.to.toTimeZone(time_zone)));
}