Skip to main content

Module types

Module types 

Source
Expand description

Stable type aliases for the date/time types used across the four datetime widgets. Routes through jiff today; swap-friendly because the widgets never name jiff directly.

Structs§

Date
A representation of a civil date in the Gregorian calendar.
DateTime
A representation of a civil datetime in the Gregorian calendar.
Time
A representation of civil “wall clock” time.
YearMonth
Year + month pair, with no day component. Used by Calendar to track the visible month independently of the current selection.

Enums§

Weekday
A representation for the day of the week.

Functions§

today_local
Today’s date in the system’s local time zone.
weekday_from_monday_zero
Weekday::from_monday_zero_offset clamped to 0..=6 and infallible — the rest of the date code only ever traffics in valid offsets, and a panic here would point at a bug, not a user error.