OxL Reference

method Dur.isNegative

True for a negative duration.

Example:

oxl✓ checked in CI
fn main() io {
  print("{(1s - 2s).isNegative()} {1s.isNegative()}")
}
Output
true false
pub(api) fn isNegative() -> bool

Since. 1.0.0-beta

Returns

bool

Effects

none declared (pure unless the body says otherwise)

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

See also