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 dubious month/day dates #13

Open peterdesmet opened 11 years ago

peterdesmet commented 11 years ago

11-12-2012 could be a little-endian date (11 december) or a middle-endian date (12 november) and is thus dubious.

Currently, the parser returns nothing for these dates, but the year can be unambiguously determined: 2012.

cgendreau commented 10 years ago

Do you think 0-0-2012 should return null or 2012?

peterdesmet commented 10 years ago

I would return 2012.

1-1-2012 is also a very common representation for 2012, but that one cannot be transformed to 2012.