![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.javascript archiveRe: Adjusting for Timezone
From: Jim Davis <newsmonkey@vboston.com>
Date: Wed Aug 31 2005 - 05:55:14 CEST
Well, I took a nap and then was able to figure it out.
There are two general methods for doing this. I'll be used the term
1) A two stage conversion. Step one uses the source timezone offset to
This works just fine... but it's rather inelegant in my opinion (needing the
2) Do the basic math (never a personal strong point). Subtracting the
Source offset is +1:00, target is -4:00: (+1 - -4) = 5
And so forth. The resulting number is the offset between the source date
I hope this helps somebody else. ;^)
Jim Davis
|