Have you tried:

use locale;

I suggested `perldoc perllocale` because I was not sure if you could use
it on M$ platforms, but after I did a few seconds of research, I learned
you can since it is partially POSIX compliant.  This should tell perl
what your locale (timezone offset from GMT/country code/language/number
formatting, etc..) should be set to in the interpreter.

Try it and see if it works.  If not, or the time is different, you may
want to read 1perldoc perllocale` and see what applies to you.

-Greg

On Mon, 28 Oct 2002 09:38:18 -0600
Goodman Kristi - kgoodm <[EMAIL PROTECTED]> wrote:

> 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