method
Clock.now
Clock.now() -> int
The current value of the simulated clock, as a DateTime (seconds since 1970). Deterministic — it returns exactly what the game last set or advanced it to, never the wall clock.
Example
program Demo {
handler Step phase Update {
let t = Clock.now()
let hour = DateTime.hour(t)
}
}