[Israel.pm] Date::ManIP time zone error message

Chanan Berler chananb at centerity.com
Sun Dec 28 07:34:55 PST 2008


Hello All,

When I am trying to run this command on WinVista I get these error message? 
Q: How can I work the time zone in perl ? 
Thanks
Chanan

#!/usr/bin/perl
use Date::Manip;

$ENV{TZ}='Asia/Israel';
my $date = ParseDate("today");
print $tz;


Error Message:
ERROR: Date::Manip unable to determine Time Zone.
 at C:/Perl/site/lib/Date/Manip.pm line 3666
    Date::Manip::Date_TimeZone() called at C:/Perl/site/lib/Date/Manip.pm
line 693
    Date::Manip::Date_Init() called at C:/Perl/site/lib/Date/Manip.pm line
1463
    Date::Manip::ParseDate('today') called at Date_ManIP.pl line 4
per




More information about the Perl mailing list