OxL Reference

method Tm.date

Calendar date in UTC.

Example:

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

fn main() io {
  print(Time.ofUnixSeconds(86400).date().toIso())
}
Output
1970-01-02
pub(api) fn date() -> Date

Since. 1.0.0-beta

Returns

Date

Effects

none declared (pure unless the body says otherwise)

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

See also