On Thu, May 20, 2010 at 10:07 AM, Lars Aronsson lars@aronsson.se wrote:
Maarten Dammers wrote:
Op 19-5-2010 13:45, Lars Aronsson schreef:
I tried to parse the year, I was successful for 3.5 million files. (Maybe I didn't try very hard.)
I guess you used a regex. Which one exactly? Or did you publish your code somewhere?
No, I did not publish my code or regex, and I don't intend to. This was a quick hack, and I know I might have missed lots of files. For example, just one random image from the huge Bundesarchiv image donation has a "Date=0-00-00", http://commons.wikimedia.org/wiki/File:Bundesarchiv_Bild_147-0435,_Wolfgang_...
(It's a mystery to me, why this is displayed as "november 1999".)
Probably "year 00" interpreted as 2000; January would be "month 01", so "month 00" subtracts one, making it December 1999. The first day would be "01", so subtracting one lands you on an undefined November day...
Magnus