28 Aug 03:26
Re: localtime()->timezone ???
From: H. William Welliver III <hww3 <at> riverweb.com>
Subject: Re: localtime()->timezone ???
Newsgroups: gmane.comp.lang.pike.user
Date: 2008-08-28 01:26:11 GMT
Subject: Re: localtime()->timezone ???
Newsgroups: gmane.comp.lang.pike.user
Date: 2008-08-28 01:26:11 GMT
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). >
RSS Feed