Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Daylight saving (Was: RE: Re: Swatch time)

 [1/7] from: mario::cassani::icl::com at: 8-Oct-2001 8:58


Hi all,
> > And isn't it time Daylight Saving was banned? (Kicked in > > this morning > > here - grumble, grumble...) > > I think we should be permanently on Daylight saving - they > should ban going back :) >
How can I know if the Daylight saving are "active" or not? The two different versions of 'internet-time suggested in the thread give different results on my computer and a .exe program I have gives a further internet time (and the local time is one hour late). I am using NT 4.0 sp6 (I know, it's a shame). The timezones/daylight handling makes me crazy, I am never sure windows gives the right time, it looks like the BIOS and windows use two different clocks... Mario Cassani

 [2/7] from: gchiu:compkarori at: 8-Oct-2001 23:27


On Mon, 8 Oct 2001 08:58:36 +0100 Cassani Mario <[Mario--Cassani--icl--com]> wrote:
> > > How can I know if the Daylight saving are "active" or
I just switched to daylight saving. The day before yesterday
>> now/zone
== 12:00 Today
>> now/zone
== 13:00
> not? > The two different versions of 'internet-time suggested > in the thread give different results on my computer and a
Here's my amended version that is embeddded into my chat client and now uses the /hour/minute/second refinements of time ; converts a time value into internet time to-internettime: func [ time [time!] timezone [time!] /local gmttime ] [ gmttime: time - timezone if gmttime < 0:00 [ gmttime: gmttime + 24:00 ] if gmttime > 24:00 [ gmttime: gmttime - 24:00 ] gmttime: ( ( ( gmttime/hour * 3600 ) + ( gmttime/minute * 60 ) + gmttime/second ) / 86.40 ) + 41 ; offset from GMT/UTC if gmttime > 1000 [ gmttime: gmttime - 1000 ] return ( to-integer ( gmttime * 100 ) ) / 100 ] ; returns local time in beats internettime: does [ return to-internettime now/time now/zone ] I've checked it a few times with the one on swatch.com and it agrees to within a few beats.
> I am using NT 4.0 sp6 (I know, it's a shame).
Me too. -- Graham Chiu

 [3/7] from: sanghabum:aol at: 8-Oct-2001 11:58


[Mario--Cassani--icl--com] writes:
> The timezones/daylight handling makes me crazy, I am never > sure windows gives the right time, it looks like the BIOS and > windows use two different clocks...
If this sort of thing doesn't drive you crazy, then there must be something wrong with you. The rules are completely arbitrary and geopolitical. Windows implements only a tiny subset of the global rules needed for an accurate daylight savings change over. To do it accurately, you need to know which country you are in. If you are in the USA there are different rules per state (some do not have DSL at all) and, for Indiana, there are different rules per county. Once you know your locale (country, state, county, whatever) the date that DSL kicks in or out is either decided by a simple rule (s in the USA or by a dithery committee (as in the UK—where diaries always say "sorry we were printed too far ahead to be 100% accurate about the Summer Time change date"). And then, fuinally, I think, you need to know the time of day for the changeover in that locale--it isn't always 02:00. Ed Nisley has a good starter article in this month's Dr Dobbs, but he really only covers the USA: http://www.ddjembedded.com/resources/articles/2001/0110m/0110m.htm If you really want to be driven mad, try working for a flight operator with flights from Country A to Country C with a touchdown in country B. And then try to be accurate about the actual local times of takeoff/landing during the month or so when DSL wafts across the world. --I've tried it. I'm gibbering, --Colin.

 [4/7] from: carl:cybercraft at: 9-Oct-2001 14:19


On 08-Oct-01, Cassani Mario wrote:
> Hi all, >>> And isn't it time Daylight Saving was banned? (Kicked in
<<quoted lines omitted: 15>>
> windows use two different clocks... > Mario Cassani
This is where I look to see any oversea's times... http://www.hilink.com.au/times/ As to daylight saving being taken into account by computer programs, well, it's a big ask, as it changes on different days in different countries, and even if it did change on the same day everywhere, it'll still be changing at different times in each country. The whole thing's daft and the Net will probably kill it off. In the UK times used to be different throughout the country - till the railways came and with it the need for timetables. It was too complicated to work out when the towns down the line were all a few minutes different from each other, so the UK switched to a single time for everywhere. (Well, except for Northern Ireland it would seem.) -- Carl Read

 [5/7] from: carl:cybercraft at: 9-Oct-2001 14:45


Just found this marvelous rant against Swatch Time... http://www.nettime.org/nettime.w3archive/199812/msg00036.html GMT's fine enough for me as a world time, and the day's division into 12/24 hours is too. Twelve's a lovely number compared to ten. 12 can be divided by 1, 2, 3, 4 and 6, while horrible 10 by only 1 and 5. I betcha the race that rules the universe has 6 fingers per hand, not five... (: -- Carl Read

 [6/7] from: matt:fitzgerald:bigpond at: 9-Oct-2001 12:00


10 can also be divided by 2 :-)

 [7/7] from: carl:cybercraft at: 9-Oct-2001 17:20


On 09-Oct-01, Matt Fitzgerald wrote:
> 10 can also be divided by 2 :-)
Well I never - you're right! Learn something new every day... (:
> -----Original Message----- From: [rebol-bounce--rebol--com] > [mailto:[rebol-bounce--rebol--com]]On Behalf Of Carl Read
<<quoted lines omitted: 7>>
> and 5. I betcha the race that rules the universe has 6 fingers per > hand, not five... (:
-- Carl Read

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted