OxL Reference

method ZonedTime.date

The date on the wall clock of the zone.

Example:

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

fn main() io {
  print("{Time.ofUnixSeconds(0).in(tz"Pacific/Auckland").date().toIso()}")
}
Output
1970-01-01
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:2231

See also