Module parse

Source
Expand description

Date and time parsing routines.

Functionsยง

parse
Tries to parse given string into parsed with given formatting items. Returns Ok when the entire string has been parsed (otherwise parsed should not be used). There should be no trailing string after parsing; use a stray Item::Space to trim whitespaces.
parse_and_remainder
Tries to parse given string into parsed with given formatting items. Returns Ok with a slice of the unparsed remainder.
parse_internal ๐Ÿ”’
parse_rfc2822 ๐Ÿ”’
parse_rfc3339 ๐Ÿ”’
parse_rfc3339_relaxed ๐Ÿ”’
Accepts a relaxed form of RFC3339.
set_weekday_with_num_days_from_sunday ๐Ÿ”’
set_weekday_with_number_from_monday ๐Ÿ”’