method Dur.ofSeconds
A duration of n seconds.
Example:
use std.time { Duration }
fn main() io {
print("{Duration.ofSeconds(3).millis()}")
}Output
3000
pub(api) static fn ofSeconds(n: i64) -> DurSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
n | i64 |
Returns
Dur
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:434