OxL Reference

method ZonedTime.toIso

ISO 8601 with offset and [zone].

Example:

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

fn main() io {
  print(Time.ofUnixSeconds(0).in(tz"UTC").toIso())
}
Output
1970-01-01T00:00:00Z
pub(api) fn toIso() -> str

Complexity. O(1).

Since. 1.0.0-beta

Returns

str

Effects

none declared (pure unless the body says otherwise)

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

See also