Expand description
Helper functions for calculating dates
Structs§
- Date
- The date value
Enums§
- IsIn
Month - Specifies if the calculated day lays in the previous, same or next month of the date.
Statics§
- MAX_
MONTH_ STR_ LEN - Gets the length of the longest month name.
- WEEKDAY_
LABELS - Gets the labels of the weekdays containing the first two characters of the weekdays.
Functions§
- date_
as_ string - Gets the string representation of the date of the given month and date.
- position_
to_ day - Panics
- pred_
day - Calculates a date with the previous day based on the given date.
- pred_
month - Panics
- pred_
week - Calculates a date with the previous week based on the given date.
- pred_
year - Panics
- succ_
day - Calculates a date with the next day based on the given date.
- succ_
month - Panics
- succ_
week - Calculates a date with the next week based on the given date.
- succ_
year - Panics