Skip to main content

today_local

Function today_local 

Source
pub fn today_local() -> Date
Expand description

Today’s date in the system’s local time zone.

Single source of truth for “today” across the calendar / date widgets — used by today-ring rendering, the today-button, the T keyboard shortcut, and any default-when-no-value selection. Falls back to a fixed sentinel only if the platform refuses to give us a local zone (jiff returns Zoned::now infallibly on Linux/macOS/ Windows; other platforms with broken tzdb fall back to UTC then to the sentinel).