OxL Reference

method Tm.unixMillis

Whole milliseconds since the Unix epoch.

Example:

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

fn main() io {
  print("{Time.ofUnixSeconds(2).unixMillis()}")
}
Output
2000
pub(api) fn unixMillis() -> i64

Since. 1.0.0-beta

Returns

i64

Effects

none declared (pure unless the body says otherwise)

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

See also