Ok, localtime() has always done what I expected in the past, but on my
win2k machine(and 3 others I have tested), it doesn't.
Under win2k this
print "TZ = $ENV{TZ}\n";
@time = localtime();
print "@time\n";
print "Local: " . scalar localtime() . "\n";
print " GMT: " . scalar gmtime() . "\n";
says this:
TZ = MST-7MDT
48 46 22 23 9 102 3 295 1
Local: Wed Oct 23 22:46:48 2002
GMT: Wed Oct 23 14:46:48 2002
So, the GMT is correct -- it's 8:46am MST == GMT - 7 hours + 1 for DST, but
localtime is returning GMT + 8 hours. My NT machine set to the same
timezone correctly reports the same GMT and the correct localtime. So, the
question is, what do I have configured wrong? (surely localtime is not
broken!)
Steve
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs