Re: Daylight Savings Time

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



JRS: In article <ek5UbRm$FHA.3716@xxxxxxxxxxxxxxxxxxxx>, dated Sun, 11
Dec 2005 10:05:41 local, seen in news:microsoft.public.scripting.vbscrip
t, "Crash" Dummy <dvader@xxxxxxxxxxxxx> posted :
>I am trying to convert local time to GMT in a script. I can get the GMT offset
>for standard time, but that is not valid when Daylight Savings Time is active. I
>set the system clock for midsummer when DST is active and ran the script which
>determines GMT offset. I got the same number I get for standard time.
>
>Is there a way to detect whether DST is set and active? Or better yet, is there
>a way to get GMT directly while the computer clock is set for the local time
>zone?

It's trivial with javascript, and getting it that way in a Web page
which is otherwise VBscript is shown in <URL:http://www.merlyn.demon.co.
uk/vb-dates.htm#TZ>.

If you're using WSH, news:microsoft.public.scripting.wsh might have
better answwers.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
.



Relevant Pages

  • Daylight Savings Time
    ... I am trying to convert local time to GMT in a script. ... I can get the GMT offset ... I got the same number I get for standard time. ...
    (microsoft.public.scripting.vbscript)
  • Re: Daylight Savings Time
    ... > I am trying to convert local time to GMT in a script. ... > determines GMT offset. ... I got the same number I get for standard time. ... #2: Get the ActiveTimeBias from WMI: ...
    (microsoft.public.scripting.vbscript)
  • Re: Getting computed/current style
    ... Since I never attempted to retrieve offset values of relatively ... positioned elements by script, I wrote a little test case. ... I fail to see how offset coordinates are useful for animations. ... correct to the pixel (rather than assuming that the browsers' often ...
    (comp.lang.javascript)
  • Re: a couple modest MV proposals
    ... Thanks Henry - yes a very interesting article, ... If your date:time also included the local GMT offset, ... to local time before acting on the data. ... US mm/dd/yy format. ...
    (comp.databases.pick)
  • Re: Absolute element offsets--exercise in futility
    ... script like jQuery was only an issue if calling apps ... browser scripting neophytes: calculating offset positions. ... handful of browsers supported by jQuery. ...
    (comp.lang.javascript)