OxL Reference

method ZonedTime.local

Wall clock in the zone.

Example:

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

fn main() io {
  print("{Time.ofUnixSeconds(0).in(tz"Asia/Tokyo").local().toIso()}")
}
Output
1970-01-01T09:00:00
pub(api) fn local() -> Ldt

Since. 1.0.0-beta

Returns

Ldt

Effects

none declared (pure unless the body says otherwise)

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

See also