Le 04/05/2011 11:25, Colin Campbell a écrit :
Interesting, C4::Dates allows you to instantiate a Date with a day value of 00. Not sure why you really want this behaviour but nowhere does it actually document what this means. We assume that this is intended behaviour as t/Dates.t actually confirms it. But there's no documentation of what it does to a date. If you look at the output from t/Dates.t creating a date with 0/1/1952 (I'm using dmy here) returns a formatted version of 31/12/1951. i.e. ) has a "kind of -1" effect I don't see the logic. And it's not how mySQL handles "0". iirc, mySQL consider 0 as "I dont know and I don't care, just remember M and Y"
-- Paul POULAIN http://www.biblibre.com Expert en Logiciels Libres pour l'info-doc Tel : (33) 4 91 81 35 08