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

Re: [MacPerl] time, date, and timezone



At 07:32 -0400 98/08/27, Chris Nandor wrote:
> At 00.55 -0400 1998.08.27, Vicki Brown wrote:
> >At 20:12 -0700 98/08/26, John W Baxter wrote:
> >>At 13:22 -0700 8/26/98, Stephan Somogyi wrote:
> >>>
> >>>A quick hunt through OSUtils.h shows that the MachineLocation struct
> >>>filled in by ReadLocation() contains a long named gmtDelta.
> >>
> >>Which if memory serves isn't a simple long as it is actually used, but
> >>indeed the delta to GMT is in there at the low end (high byte(s)
>has/have
> >>other uses).
> >
> >OK... but what does this mean for those of us who use MacPerl?
>
> Well, it means a lot to anyone who would write MacPerl code to get at it,
> especially XS code.  And if someone wrote the XS code but did not pull out
> the data for you, then you'll have to use unpack() yourself to get at it.

So what I'm hearing is that:
   1) timezone data (at least, delta from GMT) is in there
   2) at present, I can't get at it :-(
   3) If someone would write the XS code to get at it, I could use that
      in my MacPerl scripts

Sounds like something that would be nice in the next version of MacPerl :-)
While we're at it (;-) we could add the TZ "environment" variable, right?

I'm patient...

- Vicki
---
Vicki Brown, vlb@cfcl.com        |\      _,,,---,,_
Journeyman Sourceror      ZZZzz /,`.-'`'    -.  ;-;;,_
Scripts & Philtres             |,4-  ) )-,_. ,\ (  `'-'
http://www.cfcl.com/~vlb      '---''(_/--'  `-'\_)
P.O. Box 1269 San Bruno, CA  94066

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