Marcos -

> Now it makes me wonder if perl needs TZ environment variable
> to show time() in localtime.

I do not think so under Win32, but Perl _will_ make use of TZ if available:

C:\>set TZ
Environment variable TZ not defined

C:\>perl -e "print scalar localtime"
Thu Apr 11 16:13:04 2002
C:\>set TZ=CET-1CEST

C:\>perl -e "print scalar localtime"
Thu Apr 11 22:13:18 2002

The same experiment works with Perl under CygWin. I didn't try it with the CygWin 
"date" command.

On rereading my note, I find that I was also confused about your time zone
offset. I was so fascinated with your ".es" domain, I concluded your offset
was -2, when in fact it was +2 (+1 for Central European, and +1 for summer
time). Thank you for not letting me confuse you as well.

> Then TZ variable is listened by perl?

I believe so.

Tom Wyant

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to