OxL Reference

fn now

Current UTC time (§17.3).

Example:

oxl✓ checked in CI
fn main() io, time {
  let t = now()
  print("{t.unixSeconds() > 1700000000}")
}
Output
true
@intrinsic("now") pub(api) fn now() -> Time  time

Since. 1.0.0-beta

Returns

Time

Effects

time

Defined in: std/core/functions.oxl:73

See also