OxL Reference

method Tm.ofUnixMillis

The instant ms milliseconds after the Unix epoch.

Example:

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

fn main() io {
  print("{Time.ofUnixMillis(1500).unixSeconds()}")
}
Output
1
pub(api) static fn ofUnixMillis(ms: i64) -> Tm

Since. 1.0.0-beta

Parameters

NameType
msi64

Returns

Tm

Effects

none declared (pure unless the body says otherwise)

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

See also