NAME

Time::Format::MySQL - provides from_unixtime() and unix_timestamp()

SYNOPSIS

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

DESCRIPTION

Time::Format::MySQL provides mysql-like functions, from_unixtime() and unix_timestamp().

FUNCTIONS

from_unixtime($unixtime [, $format])

unix timestamp -> date time

unix_timestamp($datetime [, $format])

date time -> unix timestamp

SEE ALSO

DateTime::Format::MySQL
Time::Piece::MySQL

LICENSE

Copyright (C) Hiroki Honda.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Hiroki Honda <cside.story@gmail.com>