Module numeric

Source
Available on crate feature numeric only.

Functionsยง

dd
Recognizes either one or two digits of a day part.
dd_mm
Recognizes the day and month parts separated by the numeric_date_parts_separator using the dd and mm parsers.
dd_mm_only
Recognizes the day and month parts separated by the numeric_date_parts_separator and returns the NaiveDate with the selected day, month and current year if the date exists, otherwise returns Error::NonExistentDate.
dd_mm_y4
Recognizes the day, month and year parts separated by the numeric_date_parts_separator and returns NaiveDate with the selected parts if the date exists, otherwise returns Error::NonExistentDate.
dd_only
Recognizes either one or two digits of a day part and returns the NaiveDate with the selected day and current month and year if the date exists, otherwise returns Error::NonExistentDate.
mm
Recognizes either one or two digits of a month part.
mm_dd
Recognizes the month and day parts separated by the numeric_date_parts_separator using the mm and dd parsers.
mm_dd_only
Recognizes the month and day parts separated by the numeric_date_parts_separator and returns the NaiveDate with the selected day, month and current year if the date exists, otherwise returns Error::NonExistentDate.
mm_dd_y4
Recognizes the month, day and year parts separated by the numeric_date_parts_separator and returns NaiveDate with the selected parts if the date exists, otherwise returns Error::NonExistentDate.
numeric_date_parts_separator
Recognizes a separator of numeric date parts in the following templates (asterisk symbol denotes some separator):
y4
Recognizes four digits of the year part.
y4_mm_dd
Recognizes the year, month and day parts separated by the numeric_date_parts_separator and returns NaiveDate with the selected parts if the date exists, otherwise returns Error::NonExistentDate.