Ticket #30 (defect)
Opened 13 years ago
Last modified 13 years ago
error parseing dates
Status: assigned
Reported by: | haines | Assigned to: | haines (accepted) |
---|---|---|---|
Priority: | critical | Milestone: | raw2proc-1.0 |
Component: | raw2proc | Version: | |
Keywords: | Cc: | ||
We started having a problem with filt_datetime() and the regexp that YYYYMMDD or YYMMDD for dates of Nov and Dec 2010. The date string '2010-12' was parsed as (2020, 10, 12) not (2010, 12, 01).
We should try using the parser provided by the python module dateutil-1.2
Try
>>from dateutil.parser import parse
>>parse('2010_12', fuzzy=True)
datetime.datetime(2010, 12, 1, 0, 0)
Change History
12/09/10 16:29:58: Modified by haines
- status changed from new to assigned.
- description changed.
12/09/10 16:53:40: Modified by haines
- priority changed from major to critical.
- summary changed from error parse dates to error parseing dates.