Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Daylight saving correction

Reply
Thread Tools

Daylight saving correction

 
 
Roedy Green
Guest
Posts: n/a
 
      03-14-2010
Your computer should have automatically set your PC clock ahead 1 hour
at 2AM this morning. If you want to check that it worked ok, and if
not correct the problem and resynch your clock with an atomic source,
see

http://mindprod.com/webstart/setclock.html

for general lore on DST see
http://mindprod.com/jgloss/dst.html

--
Roedy Green Canadian Mind Products
http://mindprod.com

Responsible Development is the style of development I aspire to now. It can be summarized by answering the question, “How would I develop if it were my money?” I’m amazed how many theoretical arguments evaporate when faced with this question.
~ Kent Beck (born: 1961 age: 49) , evangelist for extreme programming.
 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      03-14-2010
On Sun, 14 Mar 2010 09:22:18 -0700, Roedy Green
<> wrote, quoted or indirectly quoted
someone who said :

>Your computer should have automatically set your PC clock ahead 1 hour
>at 2AM this morning.


That applies to the USA and Canada only. Other parts of the world
will have other correction dates.
--
Roedy Green Canadian Mind Products
http://mindprod.com

Responsible Development is the style of development I aspire to now. It can be summarized by answering the question, “How would I develop if it were my money?” I’m amazed how many theoretical arguments evaporate when faced with this question.
~ Kent Beck (born: 1961 age: 49) , evangelist for extreme programming.
 
Reply With Quote
 
 
 
 
Arne Vajhøj
Guest
Posts: n/a
 
      03-14-2010
On 14-03-2010 12:22, Roedy Green wrote:
> Your computer should have automatically set your PC clock ahead 1 hour
> at 2AM this morning. If you want to check that it worked ok, and if
> not correct the problem and resynch your clock with an atomic source,
> see


C:\>javac DST.java
DST.java:1: class, interface, or enum expected
Your computer should have automatically set your PC clock ahead 1 hour
^
1 error

Arne
 
Reply With Quote
 
Arne Vajhøj
Guest
Posts: n/a
 
      03-14-2010
On 14-03-2010 12:23, Roedy Green wrote:
> On Sun, 14 Mar 2010 09:22:18 -0700, Roedy Green
> <> wrote, quoted or indirectly quoted
> someone who said :
>> Your computer should have automatically set your PC clock ahead 1 hour
>> at 2AM this morning.

>
> That applies to the USA and Canada only.


And only to OS's that has such a feature.

But it is still not on topic here.

Arne


 
Reply With Quote
 
Dr J R Stockton
Guest
Posts: n/a
 
      03-16-2010
In comp.lang.java.programmer message <i53qp5dnm4ro53afcfkqvbgqr7kl9g4dea
@4ax.com>, Sun, 14 Mar 2010 09:22:18, Roedy Green <see_website@mindprod.
com.invalid> posted:
>Your computer should have automatically set your PC clock ahead 1 hour
>at 2AM this morning.


Codswallop and balderdash. The proper date for that is the last Sunday
in March and the proper time is 01:00 UTC (or GMT), which all Canadians
should realise. The proper date to change back is the last Sunday in
October, at the same UTC.

Except, of course, for those in the Southern Hemisphere.

Both except those near the Equator, in Iceland, or on the ISS - etc.

--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05.
Web <URL:http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/> - see 00index.htm
Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.
 
Reply With Quote
 
Joshua Cranmer
Guest
Posts: n/a
 
      03-17-2010
On 03/14/2010 12:22 PM, Roedy Green wrote:
> Your computer should have automatically set your PC clock ahead 1 hour
> at 2AM this morning. If you want to check that it worked ok, and if
> not correct the problem and resynch your clock with an atomic source,
> see
>
> http://mindprod.com/webstart/setclock.html


Only if you are part of the ~5% of the world population who lives in
parts of North America and the Caribbean islands.

A more complete (but not fully correct) chart, taken courtesy of another
newsgroup that requires coordination between people from many different
countries (most notably U.S., Canada, a variety of European countries,
New Zealand, Japan, among others):

Sunday, February 21:
-1 hour: South, Southeast, and Central-West Brazil (GO, DF, MG, ES, RJ,
SP, PR, SC, RS, MS, MT)

Sunday, March 14:
+1 hour: Canada (except Saskatchewan (excluding western parts that are in
Mountain Time) and the areas around Resolute (NU),
Atikokan (ON) and Southampton Island (NU),
Blanc-Sablon (PQ), and Dawson Creek and Fort Saint
John (BC))
United States (except Hawaii and most (non-Navajo areas) of
Arizona)
parts of Mexico near US border (except Sonora)
Bahamas
Bermuda
Cuba
Turks & Caicos Islands
St. Pierre & Miquelon
Thule area (Greenland)

-1 hour: Uruguay
San Luis area (Argentina)
Palmer Station (Antarctica)

Monday, March 22:
+1 hour: Iran

Friday, March 26:
+1 hour: Jordan, Syria, Israel, Palestinian Territories

Sunday, March 28:
+1 hour: all of Europe (except Iceland and Georgia), including:
all of Russia (except Novokuznetsk area)
all of Turkey
Armenia
Azerbaijan
Cyprus
Faroe Islands
Tunisia
Lebanon
most of Greenland (except Thule and Danmarkshavn areas)

-1 hour: Samoa
Fiji

Thursday, April 1:
+1 hour: Bangladesh

Sunday, April 4:
-1 hour: much of Australia (Victoria, NSW, Tasmania, SA, ACT?)
New Zealand
Namibia
Chile
McMurdo and Amundsen-Scott Stations (Antarctica)

-0.5 hours: Lord Howe Island (Australia)

+1 hour: Mexico (except Sonora and parts near US border)

Sunday, April 11:
-1 hour: Paraguay

Thursday, April 15:
+1 hour: Pakistan

Sunday, April 18:
-1 hour: Falkland Islands

Friday, April 30:
+1 hour: Egypt

On second thought, don't bother posting DST correction announcements.
The newsgroup would be flooded throughout late March and April, as well
as a similar timeframe near the other equinox.


--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      03-17-2010
On Mon, 15 Mar 2010 09:54:17 +0000, bugbear
<bugbear@trim_papermule.co.uk_trim> wrote, quoted or indirectly quoted
someone who said :

>> Your computer should have automatically set your PC clock ahead 1 hour
>> at 2AM this morning.

>
>No it shouldn't!


I presume by that you mean the UTC time should not have shifted, just
the displayed local time? Or that this only applies to Canada and the
USA?
--
Roedy Green Canadian Mind Products
http://mindprod.com

Responsible Development is the style of development I aspire to now. It can be summarized by answering the question, “How would I develop if it were my money?” I’m amazed how many theoretical arguments evaporate when faced with this question.
~ Kent Beck (born: 1961 age: 49) , evangelist for extreme programming.
 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      03-17-2010
On Tue, 16 Mar 2010 13:24:12 +0000, Dr J R Stockton
<> wrote, quoted or indirectly quoted
someone who said :

>Codswallop and balderdash. The proper date for that is the last Sunday
>in March and the proper time is 01:00 UTC (or GMT), which all Canadians
>should realise. The proper date to change back is the last Sunday in
>October, at the same UTC.


Not any more. Remember Mr. Bush extended the range of DST.

The 2:00 AM local time rule is what I learned as a young child, and in
general that is when public clocks change in my part of the world.

What is your source for 1:00 UTC?
--
Roedy Green Canadian Mind Products
http://mindprod.com

Responsible Development is the style of development I aspire to now. It can be summarized by answering the question, “How would I develop if it were my money?” I’m amazed how many theoretical arguments evaporate when faced with this question.
~ Kent Beck (born: 1961 age: 49) , evangelist for extreme programming.
 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      03-17-2010
On Tue, 16 Mar 2010 13:24:12 +0000, Dr J R Stockton
<> wrote, quoted or indirectly quoted
someone who said :

>
>Codswallop and balderdash. The proper date for that is the last Sunday
>in March and the proper time is 01:00 UTC (or GMT), which all Canadians
>should realise. The proper date to change back is the last Sunday in
>October, at the same UTC.



according to TimeZone.inDaylightTime, for PST, the shift happened
2010-03-14.
--
Roedy Green Canadian Mind Products
http://mindprod.com

Responsible Development is the style of development I aspire to now. It can be summarized by answering the question, “How would I develop if it were my money?” I’m amazed how many theoretical arguments evaporate when faced with this question.
~ Kent Beck (born: 1961 age: 49) , evangelist for extreme programming.
 
Reply With Quote
 
Dr J R Stockton
Guest
Posts: n/a
 
      03-18-2010
In comp.lang.java.programmer message <c5r0q516d182h35q6jsad1nk7hdl5iuv5t
@4ax.com>, Tue, 16 Mar 2010 22:49:26, Roedy Green <see_website@mindprod.
com.invalid> posted:
>On Tue, 16 Mar 2010 13:24:12 +0000, Dr J R Stockton
><> wrote, quoted or indirectly quoted
>someone who said :
>
>>Codswallop and balderdash. The proper date for that is the last Sunday
>>in March and the proper time is 01:00 UTC (or GMT), which all Canadians
>>should realise. The proper date to change back is the last Sunday in
>>October, at the same UTC.

>
>Not any more. Remember Mr. Bush extended the range of DST.


Mr Bush is, and was, irrelevant (and North America previously used the
first Sunday in April). Moreover, while the Energy Policy Act of 2005
applied throughout America, that part of the Act did not have effect
throughout America. The States are not in all respects United. Neither
is Canada; the Provinces decided independently to use the new days, but
do not all change at the same local time - NRC has a Time FAQ.

>The 2:00 AM local time rule is what I learned as a young child, and in
>general that is when public clocks change in my part of the world.


But you said nothing about your part of the world in your initial post.
You wrote "Your computer should have automatically set your PC clock
ahead 1 hour at 2AM this morning.". You were addressing a world-wide,
if sparse, readership. The whole world does not revolve around your
country's southern appendage. It generally agrees with what Churchill
might have said about them.

That sentence is full of error. There, "computer" should be plural; I
have four - the one which runs DOS cannot alter its time; the correct
time to change in Spring is 01:00 previous local (01:00 UTC or GMT); the
correct date is the last Sunday in March ... and it's unreasonable to
expect them to do anything at that sort of time, since they are all
turned completely off, externally to themselves[*].

>What is your source for 1:00 UTC?


For such things, consult
<URL:http://www.merlyn.demon.co.uk/uksumtim.htm>.
The efficient source is The Summer Time Order 2002, of which there is a
copy at <http://www.opsi.gov.uk/si/si2002/20020262.htm>. That is an
Order of your Monarch, albeit not one aimed at you, implementing for the
UK an EU Directive. One hopes that the Lord of Mann issued a similar
order.

[*] On general grounds, virtually every night; with special care to do
so around local 00:59-02:01 on the last Sunday in March, and around
local 00:59-02:01 on the last Sunday in October.

--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05.
Web <URL:http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/> - see 00index.htm
Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert a given local time to UT considering Daylight Saving Times.... Filip Lyncker C++ 3 04-05-2005 02:52 PM
Daylight saving Amitabh Deepak C++ 4 09-17-2004 12:38 PM
Daylight saving 2004-10-31 03:00 EEST/EET? NoName NoName Java 0 04-12-2004 07:21 PM
Daylight Saving time: How to identify if a given time is invalid? Pranav Kantawala Java 5 02-25-2004 06:28 PM
Converting datetimes from/to UTC/GMT including daylight saving Michael Pfeifer C++ 4 12-17-2003 09:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57