Your code could be rewritten as:
There is also Time::Piece::MySQL that does the same.use POSIX qw( strftime ); sub getMysqlTime { return POSIX::strftime("%Y-%m-%d %H:%M:%S", gmtime(shift)); }
Ciao, Valerio
In reply to Re: Epoch to Mysql datetime format
by valdez
in thread Epoch to Mysql datetime format - DO NOT USE
by zakzebrowski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |