method Dur.secondsF
Fractional seconds.
Example:
fn main() io {
print("{(1s - 2s).isNegative()} {1s.isNegative()}")
}Output
true false
Example:
fn main() io {
print("{1500ms.secondsF()}")
}Output
1.5
pub(api) fn secondsF() -> f64Since. 1.0.0-beta
Returns
f64
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:582