Gravatar

Re: localtime()->timezone ???

I believe Java's APIs work the other way as does the gnu/bsd tm struct  
member tm_gmtoff... but I guess that's beside the point. If someone  
else hasn't gotten around to fixing the docs, I'll take care of it  
when I get back in town this weekend.

Bill

On Aug 27, 2008, at 7:55 PM, Johan Sundström (Achtung Liebe!) @ Pike  
(-) importmöte för mailinglistan wrote:

> "Offset to UTC" might be better documentation, but something even more
> verbose and enlightening wouldn't hurt. AFAIK, all time zone APIs that
> give UTC offsets have the timestamp as the frame of reference, rather
> than UTC itself; add timestamp and UTC offset to get UTC time. You may
> try javascript:alert((new Date).getTimezoneOffset()) in your browser,
> for instance, for the browser object model equivalent (-120 in UTC+2).
>

Re: localtime()->timezone ???

It's prolly good to cross check with the docs for whichever syscall(s)
localtime gets its data from, and maybe even refer to those for extra
details in the docs, for an ideal picture of the data you get there.


Gmane