OxL Reference

data Tz

IANA time zone (§17.1). Literal: tz"Europe/Moscow", checked at compile time against the tz database; methods: std.time.

Example:

oxl✓ checked in CI
fn main() io {
  let moscow = tz"Europe/Moscow"
  print("{moscow.name} {moscow.show()}")
}
Output
Europe/Moscow Europe/Moscow
@derive(Copy, Eq, Hash)
pub(api) data Tz

Thread safety. an immutable value.

Since. 1.0.0-beta

Fields

pub(api) name: str

The IANA name (Europe/Moscow).

Defined in: std/core/types.oxl:177

See also