method Dur.abs
Absolute value.
Example:
fn main() io {
print("{(1s - 3s).abs().seconds()}")
}Output
2
pub(api) fn abs() -> DurSince. 1.0.0-beta
Returns
Dur
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:618