Time::Format::MySQL - provides from_unixtime() and unix_timestamp()
use Time::Format::MySQL qw(from_unixtime unix_timestamp) print from_unixtime(time); #=> 2013-01-11 12:03:28 print unix_timestamp('2013-01-11 12:03:28'); #=> 1357873408
Time::Format::MySQL provides mysql-like functions, from_unixtime() and unix_timestamp().
unix timestamp -> date time
date time -> unix timestamp
Copyright (C) Hiroki Honda.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Hiroki Honda <cside.story@gmail.com>
To install Time::Format::MySQL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Time::Format::MySQL
CPAN shell
perl -MCPAN -e shell install Time::Format::MySQL
For more information on module installation, please visit the detailed CPAN module installation guide.