OxL Reference

fn now

Current UTC time (§17.3); same as the prelude now.

Example:

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

fn main() io, time {
  print("{now().unixSeconds() > 0}")
}
Output
true
@intrinsic("now") pub(api) fn now() -> Tm  time

Since. 1.0.0-beta

Returns

Tm

Effects

time

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

See also