@@ -114,9 +114,9 @@ pub(crate) fn at_local(
114114/// literal2_date = literal_month , [ { whitespace } ] , day , [ [ literal2_date_delim ] , year ] ;
115115/// literal2_date_delim = { whitespace } | [ { whitespace } ] , "," , [ { whitespace } ] ;
116116///
117- /// year = dec_int ;
118- /// month = dec_int ;
119- /// day = dec_int ;
117+ /// year = dec_uint ;
118+ /// month = dec_uint ;
119+ /// day = dec_uint ;
120120///
121121/// literal_month = "january" | "jan"
122122/// | "february" | "feb"
@@ -130,6 +130,25 @@ pub(crate) fn at_local(
130130/// | "october" | "oct"
131131/// | "november" | "nov"
132132/// | "december" | "dec" ;
133+ ///
134+ /// weekday = [ ordinal ] day [ "," ] ;
135+ ///
136+ /// ordinal = number_ordinal | text_ordinal ;
137+ ///
138+ /// number_ordinal = [ "+" | "-" ] , dec_uint ;
139+ ///
140+ /// text_ordinal = "last" | "this" | "next" | "first"
141+ /// | "third" | "fourth" | "fifth" | "sixth"
142+ /// | "seventh" | "eighth" | "ninth" | "tenth"
143+ /// | "eleventh" | "twelfth" ;
144+ ///
145+ /// day = "monday" | "mon" | "mon."
146+ /// | "tuesday" | "tue" | "tue." | "tues"
147+ /// | "wednesday" | "wed" | "wed." | "wednes"
148+ /// | "thursday" | "thu" | "thu." | "thur" | "thurs"
149+ /// | "friday" | "fri" | "fri."
150+ /// | "saturday" | "sat" | "sat."
151+ /// | "sunday" | "sun" | "sun." ;
133152/// ```
134153pub ( crate ) fn parse ( input : & mut & str ) -> ModalResult < DateTimeBuilder > {
135154 trace ( "parse" , alt ( ( parse_timestamp, parse_items) ) ) . parse_next ( input)
0 commit comments