pub fn next_day(date: DateValue, delta: i32) -> DateValueExpand description
Moves a date by a signed number of calendar days.
Runtime is proportional to the number of crossed months.
§Panics
Debug builds may panic if adding delta to the day or crossing an extreme
i32 year overflows.
§Examples
use ailloli_ui_core::date_picker::next_day;
use ailloli_ui_core::DateValue;
assert_eq!(next_day(DateValue::new(2024, 2, 28), 1), DateValue::new(2024, 2, 29));