fromEpochNanoseconds
Construct an Instant from epoch nanoseconds (Temporal.Instant.fromEpochNanoseconds).
Parameters
- epoch_ns:i128
- i128
Source
Implementation
pub fn fromEpochNanoseconds(epoch_ns: i128) !Instant {
const parts = abi.toI128Nanoseconds(epoch_ns);
return wrapInstant(abi.c.temporal_rs_Instant_try_new(parts));
}