FromDays
Converts a whole number of days into minutes (n * 1440). A readability
helper for duration math that spans multiple days.
Category: Time Returns: int
Signature
FromDays(n)
The argument is a whole number of days.
Examples
FromDays(1) // 1440
AbsoluteMinutes() > FromDays(3) // more than three days elapsed
TimeSinceLastVisit(location_dock) > FromDays(1)
// over a day since the dock
Notes
- Requires time to be enabled for the project (Project, then Time). With time disabled, any expression using this function fails validation.
FromDaysis for expression fields, not event payloads. The Advance Time event’s Minutes field takes a plain number, so a multi-day skip is authored as the equivalent minute count there, not asFromDays(n).- Pairs with TotalDays, which does the inverse conversion, minutes back to whole days.