OxL Reference

method Dur.secondsF

Fractional seconds.

Example:

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

Example:

oxl✓ checked in CI
fn main() io {
  print("{1500ms.secondsF()}")
}
Output
1.5
pub(api) fn secondsF() -> f64

Since. 1.0.0-beta

Returns

f64

Effects

none declared (pure unless the body says otherwise)

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

See also