Skip to main content

Module component

Module component 

Source
Available on crate feature parsing only.
Expand description

Parsing implementations for all Components.

Functionsยง

parse_calendar_year_century_extended_range ๐Ÿ”’
Parse all digits of the calendar-based year except the last two.
parse_calendar_year_century_standard_range ๐Ÿ”’
Parse all digits of the calendar-based year except the last two.
parse_calendar_year_full_extended_range ๐Ÿ”’
Parse the full calendar-based year.
parse_calendar_year_full_standard_range ๐Ÿ”’
Parse the full calendar-based year.
parse_calendar_year_last_two ๐Ÿ”’
Parse the last two digits of the calendar-based year.
parse_day ๐Ÿ”’
Parse the โ€œdayโ€ component of a Date.
parse_end ๐Ÿ”’
Parse the end component, which represents the end of input. If any input is remaining and trailing input is prohibited, None is returned. If trailing input is permitted, it is discarded.
parse_hour_12 ๐Ÿ”’
Parse the โ€œhourโ€ component of a Time in the 12-hour format.
parse_hour_24 ๐Ÿ”’
Parse the โ€œhourโ€ component of a Time in the 24-hour format.
parse_ignore ๐Ÿ”’
Ignore the given number of bytes.
parse_iso_year_century_extended_range ๐Ÿ”’
Parse all digits of the ISO week-based year except the last two.
parse_iso_year_century_standard_range ๐Ÿ”’
Parse all digits of the ISO week-based year except the last two.
parse_iso_year_full_extended_range ๐Ÿ”’
Parse the full ISO-week based year.
parse_iso_year_full_standard_range ๐Ÿ”’
Parse the full ISO-week based year.
parse_iso_year_last_two ๐Ÿ”’
Parse the last two digits of the ISO week-based year.
parse_minute ๐Ÿ”’
Parse the โ€œminuteโ€ component of a Time.
parse_month_long ๐Ÿ”’
Parse the โ€œmonthโ€ component of a Date in the long form (e.g. โ€œJanuaryโ€).
parse_month_numerical ๐Ÿ”’
Parse the โ€œmonthโ€ component of a Date in the numerical format (e.g. โ€œ1โ€ for January).
parse_month_short ๐Ÿ”’
Parse the โ€œmonthโ€ component of a Date in the abbreviated form (e.g. โ€œJanโ€).
parse_offset_hour ๐Ÿ”’
Parse the โ€œhourโ€ component of a UtcOffset.
parse_offset_minute ๐Ÿ”’
Parse the โ€œminuteโ€ component of a UtcOffset.
parse_offset_second ๐Ÿ”’
Parse the โ€œsecondโ€ component of a UtcOffset.
parse_ordinal ๐Ÿ”’
Parse the โ€œordinalโ€ component of a Date.
parse_period ๐Ÿ”’
Parse the โ€œperiodโ€ component of a Time. Required if the hour is on a 12-hour clock.
parse_second ๐Ÿ”’
Parse the โ€œsecondโ€ component of a Time.
parse_subsecond ๐Ÿ”’
Parse the โ€œsubsecondโ€ component of a Time.
parse_unix_timestamp_microsecond ๐Ÿ”’
Parse the Unix timestamp component with microsecond precision, returning the value in nanoseconds.
parse_unix_timestamp_millisecond ๐Ÿ”’
Parse the Unix timestamp component with millisecond precision, returning the value in nanoseconds.
parse_unix_timestamp_nanosecond ๐Ÿ”’
Parse the Unix timestamp component with nanosecond precision.
parse_unix_timestamp_second ๐Ÿ”’
Parse the Unix timestamp component with second precision, returning the value in nanoseconds.
parse_week_number_iso ๐Ÿ”’
Parse the โ€œweek numberโ€ component of a Date, where week 1 starts on the last Monday on or before January 4.
parse_week_number_monday ๐Ÿ”’
Parse the โ€œweek numberโ€ component of a Date, where week 1 starts on the first Monday of the year.
parse_week_number_sunday ๐Ÿ”’
Parse the โ€œweek numberโ€ component of a Date, where week 1 starts on the first Sunday of the year.
parse_weekday_long ๐Ÿ”’
Parse the โ€œweekdayโ€ component of a Date in the long form (e.g. โ€œMondayโ€).
parse_weekday_monday ๐Ÿ”’
Parse the weekday component of a Date in the numerical format, where Monday is the first day of the week.`
parse_weekday_short ๐Ÿ”’
Parse the โ€œweekdayโ€ component of a Date in the abbreviated form (e.g. โ€œMonโ€).
parse_weekday_sunday ๐Ÿ”’
Parse the weekday component of a Date in the numerical format, where Sunday is the first day of the week.`
parse_year ๐Ÿ”’
Parse the โ€œyearโ€ component of a Date.