[EMAIL PROTECTED] wrote: > Can soneone show me how to convert unix time to something else using > Date:: Manip? > > AFter looking at the Docs in perldoc Date::Manip I thought maybe (from > the examples) something like script below would work. The first two > (now commented) worked as expected but the one with unix date produces > a blank line only: > > #!/usr/local/bin/perl > > use strict; > use warnings; > use Date::Manip; > > my $date; > # print $date = ParseDate("05/12/08") . "\n"; > # print $date = ParseDate("today") . "\n"; > print $date = ParseDate("1210628919") . "\n"; > > What is the right syntax?
print $date = ParseDate("epoch 1210628919") . "\n"; Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/