method
Date.diff_days
Date.diff_days(a, b) -> int
The number of whole days from b to a (that is, a - b). Negative when a precedes b.
Example
program Demo {
handler Step phase Update {
let gap = Date.diff_days(Date.new(2026, 1, 1), Date.new(2025, 1, 1)) # 365
}
}