Expand description
Pure date picker values and calendar helpers.
§Examples
use ailloli_ui_core::date_picker::DateValue;
assert_eq!(DateValue::new(2024, 2, 31).day, 29);Pure date picker values and calendar helpers.
Structs§
- Calendar
Day - One cell in the fixed six-week grid returned by
month_grid. - Date
Value - A date in the proleptic Gregorian calendar.
- Month
Value - A year and month in the proleptic Gregorian calendar.
Enums§
- Week
Start - First column of a generated calendar week.
Functions§
- add_
months - Adds a signed number of calendar months using Euclidean year rollover.
- clamp_
date - Clamps a date to optional inclusive bounds.
- days_
in_ month - Returns the number of days in
monthforyear. - is_
date_ enabled - Returns whether a date falls within both optional inclusive bounds.
- is_
leap_ year - Returns whether
yearis a leap year in the proleptic Gregorian calendar. - month_
grid - Generates a fixed 42-cell, six-week calendar grid around
month. - next_
day - Moves a date by a signed number of calendar days.
- parse_
yyyy_ mm_ dd - Parses an exact decimal
year-month-daydate with a valid month and day. - weekday_
index - Returns the zero-based weekday column for
dateandweek_start.