Module date

Source

Structsยง

Date
A representation of a civil date in the Gregorian calendar.
DateArithmetic
Options for Date::checked_add and Date::checked_sub.
DateDifference
Options for Date::since and Date::until.
DateSeries
An iterator over periodic dates, created by Date::series.
DateWith
A builder for setting the fields on a Date.

Enumsยง

DateWithDay ๐Ÿ”’
Encodes the โ€œwith dayโ€ option of DateWith.
DateWithYear ๐Ÿ”’
Encodes the โ€œwith yearโ€ option of DateWith.

Functionsยง

days_in_month ๐Ÿ”’
Returns the number of days in the given year and month.
iso_week_start_from_year ๐Ÿ”’
Returns the Unix epoch day corresponding to the first day in the ISO 8601 week year given.
month_add_one ๐Ÿ”’
Adds or subtracts sign from the given year/month.
month_add_overflowing ๐Ÿ”’
Adds the given span of months to the month given.
saturate_day_in_month ๐Ÿ”’
Saturates the given day in the month.