Hi
syphilis,
That worked fine for me.Thanks a lot.But I am assigning some values to that by creating an object,see the code below,
#!/bin/perl-w
use DateTime;
my $runtime = DateTime->new(
year => 2006,
month => 07,
day => 31,
hour => 9,
minute => 54,
#time_zone => "America/Los_Angeles",
time_zone => "Indian/Christmas",
);
print"Runtime=> $runtime\n";
When I run the above code by using .pl file it is working.But when i convert it to exe by using pp -M DateTime::Locale::en_US -o perdate.exe perdate.pl it is not working and showing the meesage,
C:\Perl\bin>perdate.exe
The timezone 'Indian/Christmas' could not be loaded, or is an invalid
+name.
But that timezone is already found and working fine for .pl file.Could you suggest why?? and help me to solve this.