method
DateTime.hour
DateTime.hour(dt) -> int
The hour of the day of the instant dt (UTC), 0–23. Drives day/night cycles from a real clock.
Example
program Demo {
handler Step phase Update {
let h = DateTime.hour(DateTime.from(2000, 1, 1, 12, 30, 15)) # 12
}
}