bear / parsedatetime

Parse human-readable date/time strings
Apache License 2.0
694 stars 105 forks source link

4 letter month abbreviations parsing incorrectly #209

Open kmatt opened 7 years ago

kmatt commented 7 years ago

"Sep." results in a correct time struct, but "Sept." results in an invalid result:

In [10]: cal.parse('Sep. 5, 2016')
Out[10]:
(time.struct_time(tm_year=2016, tm_mon=9, tm_mday=5, tm_hour=17, tm_min=51, tm_sec=42, tm_wday=3, tm_yday=33, tm_isdst=0),
 1)

In [11]: cal.parse('Sept. 5, 2016')
Out[11]:
(time.struct_time(tm_year=2017, tm_mon=2, tm_mday=2, tm_hour=20, tm_min=16, tm_sec=0, tm_wday=3, tm_yday=33, tm_isdst=0),
 2)