[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

RE: [MacPerl] I am stumped! - TZ



> -----Original Message-----
> From: owner-mac-perl@iis.ee.ethz.ch
> [mailto:owner-mac-perl@iis.ee.ethz.ch]On Behalf Of Chris Nandor
> Sent: Tuesday, February 23, 1999 5:49 PM
> To: walter@tscinternet.com
> Cc: Mac-Perl
> Subject: Re: [MacPerl] I am stumped!
>
>
> At 18.07 -0500 1999.02.23, Walter Torres wrote:
> >Has any one ever been able to get the Time Zone off the Mac?
> >
> >Please enlighten me! ;)
>
> >From Ronald Kimball:
>
>   #!perl
>   use Time::Local;
>   $diff = (timelocal(localtime) - timelocal(gmtime)) / 36;
>   $diff = sprintf "%+0.4d", $diff;  # add sign, leading zero(es)
>   print $diff;

Yes, thank you, but this just gives the GMT offset, not the Time Zone.

Maybe I wasn't clear in my question, my apologies...

I am looking for the Time Zone Name, i.e. EST, CST, or even when Daylight is
active EDT, CDT.

Thanks

Walter


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch