In comp.lang.javascript message <11**********************@64g2000cwx.goo
glegroups.com>, Wed, 7 Mar 2007 10:01:58, VK <sc**********@yahoo.com>
posted:
>On Mar 2, 11:42 pm, Dr J R Stockton <reply0...@merlyn.demon.co.uk>
wrote:
>(A) Some of us in the UK will have been watching with amusement what
seems to be happening in the USA and its Northern Sidekick with regard
to the change inDSTrules.
It is nice of you to observe the metropolitan events :-) but what
exact impact do you envisage for javascript programming out of it?
You would know more about that if you were to read through the FAQ and
its appropriate linked sites. I see no need to repeat the whole
material here. You should also read Risks Digest.
>JavaScript/JScript engine obtains Date data over request to the
hosting OS, the engine doesn't have own clock and transformation
tables. So it's up to end user to get ready for March 11 deadline.
Inadequate. It only obtains data for the current locality. That's no
help to a Tasmanian who wants the time in Saskatchewan. A Nigerian
writing a page to provide that will need to know about Canadian DST.
Businesses often need to know the time - and date - elsewhere.
>Windows Vista series is ready for the DST changes by default.
And it will provide 2007 rules from 2007 March 11th and 2006 rules up to
2006 November 7th. I don't know what it does in between. US Federal
legislation makes the change of rule effective on March 1st (local time?
Capitol time?) but few Americans know that.
Javascript, by the ISO/IEC standard, is required to use only current
rules for all dates. Results for dates late in March 2006 should have
changed at 00:00:00 March 1st 2006, exactly.
>Windows XP SP2 users should check if they have KB931836 update
installed. If not then go get it at:
http://www.microsoft.com/downloads/d...66F1420C-DF2D-
400B-A8A9-EF9061A9A3CA
If they did not install it at midnight F28/M01, they will have been open
to non-compliance with the standard.
>There is no way to check OS state from within javascript with default
security settings, so nothing one can do helpful from the script side.
Round Objects. Standard Javascript can determine the exact date and
time of the changes, by the rules current at the time of determining, at
the current locality for any year within about +-275000 from Epoch. For
those locations that currently have Summer Time, it can also determine
the sign of the latitude[*] and the approximate longitude. I'm willing
to believe, of course, that you do not know how to do so.
[*] I imagine that the Irish[+] Navy, which rarely goes far, may keep
Dublin Time. But how about the RN & USN? Do they use the home change
rules even when on the other side of the Equator?
[+] The Republic of Ireland had, from 1968, Standard Time one hour ahead
of GMT. Instead of putting clocks ahead for Summer, they put them back
for Winter. That seems likely to be against present EU law.
It's a good idea to read the newsgroup and its FAQ. See below.
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.