gpurusho has asked for the wisdom of the Perl Monks concerning the following question:
My "localtime" function has suddenly started to give me the GMT time instead of PST. Any idea how this could happen? My system time is correctly set to PST. Please help.
OS - Windows 2000
I am trying to use this in my regular perl "Build" script.
code snippet
============
#!perl -w
use strict;
my ($hr, $min) = (localtime)2,1;
print "Time is $hr:$min \n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Local Time Problem
by Fletch (Bishop) on Aug 19, 2005 at 17:26 UTC |