method Tm.ofUnixNanos
The instant n nanoseconds after the Unix epoch.
Example:
use std.time { Time }
fn main() io {
print("{Time.ofUnixNanos(2000000000).unixSeconds()}")
}Output
2
pub(api) static fn ofUnixNanos(n: i64) -> TmSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
n | i64 |
Returns
Tm
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:1832