OxL Reference

method Tm.toIso

The instant as ISO 8601 in UTC.

Example:

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

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

Since. 1.0.0-beta

Returns

str

Effects

none declared (pure unless the body says otherwise)

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

See also