Bookworm-project / BookwormDB

Tools for text tokenization and encoding
MIT License
84 stars 12 forks source link

Support full ISO 8601 standard for date-times #49

Closed bmschmidt closed 9 years ago

bmschmidt commented 9 years ago

Currently, we require dates to be input in the format 1789-12-01, but behavior is undefined if you include times like 1997-07-16T19:20:30+01:00. The time parser should be able to handle rounding of things like time of day and plotting down to the minute level. (This would be useful for Twitter archives, among other things).

It would be nice if it didn't break on human readable but technically incorrect formats: 2015-1-29 is a reasonable way for somebody to write a date in their jsoncatalog.txt file, even if technically it should be 2015-01-29.

bmschmidt commented 9 years ago

Support added here. It's possible that the switch to dateutil will have significant overhead: something else worth keeping out an eye for.