method
DateTime.date
DateTime.date(dt) -> int
The Date (days since 1970) that the instant dt falls on, dropping the time of day.
Example
program Demo {
handler Step phase Update {
let today = DateTime.date(Time.now())
}
}DateTime.date(dt) -> int
The Date (days since 1970) that the instant dt falls on, dropping the time of day.
program Demo {
handler Step phase Update {
let today = DateTime.date(Time.now())
}
}