OxL Reference

method Tm.in

The same instant in a zone.

Example:

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

fn main() io {
  let z = Time.ofUnixSeconds(0).in(Tz.of("Europe/Moscow")!)
  print("{z.offset().hours()}")
}
Output
3
pub(api) fn in (tz: Tz) -> ZonedTime

Since. 1.0.0-beta

Effects

none declared (pure unless the body says otherwise)

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

See also