OxL Reference

method Period.show

ISO 8601 text: P1Y2M3D, P0D for zero.

Example:

oxl✓ checked in CI
fn main() io {
  print(1.year().show())
}
Output
P1Y
pub(api) fn show() -> str

Since. 1.0.0-beta

Returns

str

Effects

none declared (pure unless the body says otherwise)

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

See also