method
Duration.as_hours
Duration.as_hours(span) -> int
The span expressed in whole hours, truncated toward zero (span / 3600). Useful for turning an elapsed-time gap into a reward count.
Example
program Demo {
handler Step phase Update {
let h = Duration.as_hours(Duration.days(3)) # 72
}
}