OxL Reference

17.1 Types

TypeWhat it isHow to obtain
Instantmonotonic clock, for measurements onlyInstant.now()
Timea UTC instant (nanoseconds)now(), literal …Z
LocalDateTimedate and time without a zoneliteral 2026-11-03T18:00
Datea calendar datetoday(), literal 2026-11-03
TimeOfDaytime of dayTimeOfDay(18, 0)
ZonedTimean instant with a time zoneldt.in(tz"Europe/Moscow"), t.in(tz)
Durationan exact intervalliterals 5m, 2d
Perioda calendar interval1.month, 2.years, 3.days, Period(months: 1, days: 3)
Tzan IANA time zonetz"Europe/Moscow", Tz.utc

Source: docs/spec/oxl-standard.en.md