The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

#!perl
use strict;
use Time::Format::MySQL qw(unix_timestamp);
eval {
print unix_timestamp(@ARGV), "\n";
};
if ($@) {
warn $@;
pod2usage;
}
__END__
=encoding utf-8
=head1 SYNOPSIS
unix_timestamp '%Y-%m-%d %H:%M:%S'
=cut