method
Date.new
Date.new(year, month, day) -> int
Builds a Date from a calendar year, month (1–12) and day (1–31), returning the count of days since 1970-01-01 (UTC). Read the parts back with Date.year/Date.month/Date.day.
Example
program Demo {
handler Step phase Update {
let launch = Date.new(2026, 8, 30)
}
}