From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more
12345678910111213141516—1718192021222324 #!perluse strict;use warnings;use Pod::Usage;use Time::Format::MySQL qw(unix_timestamp);eval { print unix_timestamp(@ARGV), "\n";};if ($@) { warn $@; pod2usage;}__END__HideShow 8 lines of Pod=encoding utf-8=head1 SYNOPSIS unix_timestamp '%Y-%m-%d %H:%M:%S'=cut
#!perl
use
strict;
warnings;
Pod::Usage;
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