nmerriweather has asked for the wisdom of the Perl Monks concerning the following question:
Perl deals with months 0 based, while MySQL treats months 1 based. I'm assuming Oracle and other DBs do the same.
How do you all deal with this? Force a 0-based date into MySQL, instead of letting it compute FROM_UNIXTIME? or use a few substr() on dates you pull out to drop the month back 1?
maybe there's some builtin function that can handle this? i'm kind of stressed and not happy right now, realizing i wrote several thousand lines of code i've got to now edit.
|
---|