OxL Reference

method Period.isZero

Whether all parts of the period are zero.

Example:

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

fn main() io {
  print("{Period.ZERO.isZero()} {1.day().isZero()}")
}
Output
true false
pub(api) fn isZero() -> bool

Since. 1.0.0-beta

Returns

bool

Effects

none declared (pure unless the body says otherwise)

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

See also