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()}")
}Вывод
true false
pub(api) fn isZero() -> boolС версии. 1.0.0-beta
Возвращает
bool
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/time/time.oxl:947