method
DateTime.weekday
DateTime.weekday(dt) -> int
The day of the week of the instant dt (UTC), 0 (Sunday) through 6 (Saturday).
Example
program Demo {
handler Step phase Update {
let w = DateTime.weekday(DateTime.from(2000, 1, 1, 12, 0, 0)) # 6
}
}