For information on valid date formats, refer to the section VALID DATE FORMATS. For information on valid time zone information, refer to the section VALID TIME ZONE FORMATS.
#!/usr/bin/perl --
use strict;
use Date::Manip;
Date_Init("TZ=EST5EDT");
print "Hello, World...\n";
my $date = '30-04-2010';
$date = UnixDate($date, "%e/%b/%y");
print "$date\n";
print scalar UnixDate($date, "%g"),"\n";
__END__
Hello, World...
20/Apr/30
Sun, 20 Apr 1930 00:00:00 EST
I see its parsing the date wrong, but the documentation does not explain how to use the function
Not good |