Canadensys / narwhal-processor

Basic data processing library aiming to normalize similar values ​​in a known format.
MIT License
6 stars 7 forks source link

Add support for date interval #1

Closed cgendreau closed 10 years ago

cgendreau commented 11 years ago

ISO 8601 Date Interval : 2007-03-01/2008-05-11

cgendreau commented 10 years ago

Try to support other format like : 10.ix.1999 - 12.ix.1999 How can we check if a given string is a date range? Dates can contain numbers, roman numerals and month names in all different order. Some options: -Standardized date separators (e.g. only support slash as date separator) -Separator count, try to 'discover' the date separator by counting the different separators in the string -Regex, but it would be hard to catch all possible ways to write a single date @dshorthouse ?

cgendreau commented 10 years ago

Suggested initial support: 2 complete dates with a separator

Not supported: partial dates or full start date and partial end date

Those dates would require more processing and would bring new issues like 1910 Dec 23, Jan 5

cgendreau commented 10 years ago

Initial support available since 1.4