method
Duration.as_seconds
Duration.as_seconds(span) -> int
The span expressed in whole seconds. The inverse of Duration.seconds; also the identity, provided for symmetry with the other readers.
Example
program Demo {
handler Step phase Update {
let s = Duration.as_seconds(Duration.minutes(3)) # 180
}
}