OxL Reference

method Tm.ofUnixNanos

The instant n nanoseconds after the Unix epoch.

Example:

oxl✓ checked in CI
use std.time { Time }

fn main() io {
  print("{Time.ofUnixNanos(2000000000).unixSeconds()}")
}
Output
2
pub(api) static fn ofUnixNanos(n: i64) -> Tm

Since. 1.0.0-beta

Parameters

NameType
ni64

Returns

Tm

Effects

none declared (pure unless the body says otherwise)

Defined in: std/time/time.oxl:1832

See also