Unfortunately not (that I'm aware of, though there might be something on cpan). Each database has it's own routines. And even using the same database there can be configuration differences (e.g. in Oracle, whether to use 2-digit or 4-digit years by default).
For that reason it's worth pulling your date-handling stuff out into seperate routines - e.g. if I'm using MySQL then I'll knock up a quick sub to convert MySQL dates to epoch dates, and vice versa. Sometimes this means an extra SQL call, if you use the database itself to do the conversion - but I'm inclined to think it's worth this (tiny) efficiency hit because it makes the date-handling gubbins easier to replace if you change database.
Just my $.2
andy.
In reply to Re: dbi and dates
by andye
in thread dbi and dates
by smackdab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |