That worked!  Thanks so much!!!!

C:\work>set tz=CST+06CDT

C:\work>try.pl
The current GMT time is Tue Oct 29 16:41:34 2002
The current local time is Tue Oct 29 10:41:34 2002
1
C:\work>





Do I have to do that before I run every script?


-----Original Message-----
From: Tanton Gibbs [mailto:thgibbs@;deltafarms.com]
Sent: Monday, October 28, 2002 9:43 PM
To: Goodman Kristi - kgoodm; [EMAIL PROTECTED]
Subject: Re: localtime ()


I don't know what your timezone is, so I'm going to assume central since you
work with acxiom (I do too!)

try this at the dos prompt before you run the perl script.

set tz=CST+06CDT

or
set TZ=CST6CDT

or

set TZ=GMT-6

(I've seen it all three ways)

this will set your tz environment variable for perl...theoretically you
shouldn't have to do this.

----- Original Message -----
From: "Goodman Kristi - kgoodm" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 28, 2002 10:38 AM
Subject: localtime ()


> I asked this question about a week ago but still have not found a
solution.
>
> My localtime () function returns a time that is 5 hours ahead.  I am
running
> Win2000 and Perl 5.6.1 633 (activestate).  I have checked my BIOS time and
> it is correct and my time function (DOS) is correct.  I have no idea where
> it is getting this time.
>
> This is what my local time returns right now:
> Mon Oct 28 15:29:33 2002
>
> The time function  (DOS) returns this:
> C:\work>time
> The current time is:  9:29:52.97
>
> My Time Zone is set correctly in Windows.  Someone said that my localtime
> was displaying Greenwich Mean Time but I do not know how to change that.
If
> that is what the problem is....
>
>
>
>
> **********************************************************************
> The information contained in this communication is
> confidential, is intended only for the use of the recipient
> named above, and may be legally privileged.
> If the reader of this message is not the intended
> recipient, you are hereby notified that any dissemination,
> distribution, or copying of this communication is strictly
> prohibited.
> If you have received this communication in error,
> please re-send this communication to the sender and
> delete the original message or any copy of it from your
> computer system. Thank You.
>
>




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to