method Dur.isNegative
True for a negative duration.
Example:
fn main() io {
print("{(1s - 2s).isNegative()} {1s.isNegative()}")
}Output
true false
pub(api) fn isNegative() -> boolSince. 1.0.0-beta
Returns
bool
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:594