Module chrono::naive::date [] [src]

ISO 8601 calendar date without timezone.

Calendar Date

The ISO 8601 calendar date follows the proleptic Gregorian calendar. It is like a normal civil calendar but note some slight differences:

Week Date

The ISO 8601 week date is a triple of year number, week number and day of the week with the following rules:

Chrono's date types default to the ISO 8601 calendar date, but the Datelike::isoweekdate method can be used to get the corresponding week date.

Ordinal Date

The ISO 8601 ordinal date is a pair of year number and day of the year ("ordinal"). The ordinal number ranges from 1 to 365 or 366 depending on the year. The year number is same to that of the calendar date.

This is currently the internal format of Chrono's date types.

Structs

NaiveDate

ISO 8601 calendar date without timezone. Allows for every proleptic Gregorian date from Jan 1, 262145 BCE to Dec 31, 262143 CE. Also supports the conversion from ISO 8601 ordinal and week date.

Constants

MAX

The maximum possible NaiveDate (December 31, 262143 CE).

MIN

The minimum possible NaiveDate (January 1, 262145 BCE).