temporal_rs 0.2.3

Temporal in Rust is an implementation of the TC39 Temporal Builtin Proposal in Rust.
Documentation
1
2
3
4
5
6
7
8
9
use crate::{
    builtins::TZ_PROVIDER, unix_time::EpochNanoseconds, PlainYearMonth, TemporalResult, TimeZone,
};

impl PlainYearMonth {
    pub fn epoch_ns_for(&self, time_zone: TimeZone) -> TemporalResult<EpochNanoseconds> {
        self.epoch_ns_for_with_provider(time_zone, &*TZ_PROVIDER)
    }
}