method Period.isZero
Whether all parts of the period are zero.
Example:
use std.time { Period }
fn main() io {
print("{Period.ZERO.isZero()} {1.day().isZero()}")
}Output
true false
pub(api) fn isZero() -> boolSince. 1.0.0-beta
Returns
bool
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:947