473,769 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Daylight Savings Time & the new Energy bill

While DST is not directly part of the C language, some of the libraries
that come with compiler and perhaps the C standard itself include
references to DST. How will the community react to the new federal law
extending DST into November in the year 2007? What should developers
be ready to do? How do foreign countries/developers use DST in their
present systems?

Nov 15 '05 #1
7 1339
In article <11************ **********@g47g 2000cwa.googleg roups.com>,
GMM50 <ge***********@ att.net> wrote:
While DST is not directly part of the C language, some of the libraries
that come with compiler and perhaps the C standard itself include
references to DST. How will the community react to the new federal law
extending DST into November in the year 2007? What should developers
be ready to do? How do foreign countries/developers use DST in their
present systems?


My instinct would be to use the Arthur Olson timezone package,
which provides a configurable database of what "Savings Time" consists
of where (and when). For example it already knows about the early-70's US
savings-times variants.
--
Ceci, ce n'est pas une idée.
Nov 15 '05 #2
>>While DST is not directly part of the C language, some of the libraries
that come with compiler and perhaps the C standard itself include
references to DST. How will the community react to the new federal law
extending DST into November in the year 2007? What should developers
be ready to do? How do foreign countries/developers use DST in their
present systems?


My instinct would be to use the Arthur Olson timezone package,
which provides a configurable database of what "Savings Time" consists
of where (and when). For example it already knows about the early-70's US
savings-times variants.


For those systems that already use this package (including, I
believe, Linux, various variants of BSD, OSF, etc.) all you have
to do is add an appropriate line to the text form of the time zone
description, set an end date for the current line, and compile it
with 'zic'. Well, it's a little more complicated than that if you
are trying to fix all time zones and not just the local (presumably
in the US) one. Existing C code need not be recompiled. Code that
does its own calculations for DST will need to be changed, but there
likely isn't much of that required.

HOWEVER, there are problems lurking around. If you have an application
that has stored future time_t stamps (which are represented in GMT
on systems using this package), after the date the original switchover
would have happened, they no longer represent the same local time
you think they did. That doctor's appointment you set up for 2:00PM
October 31, 2007 has shifted by an hour in your appointment calendar.
If, on the other hand, the date was stored as '2007-10-31 14:00:00'
(implicitly local time), there wouldn't be a problem.

Now: what happens if Canada does not go along with this change?

Gordon L. Burditt
Nov 15 '05 #3
In article <11************ *@corp.supernew s.com>,
Gordon Burditt <go***********@ burditt.org> wrote:

Now: what happens if Canada does not go along with this change?


There will be a well-funded "War on Standard Time" that accomplishes
almost nothing but costs thousands of lives and billions of dollars
per year.
Nov 15 '05 #4
In article <11************ *@corp.supernew s.com>,
Gordon Burditt <go***********@ burditt.org> wrote:
My instinct would be to use the Arthur Olson timezone package,
HOWEVER, there are problems lurking around. If you have an application Now: what happens if Canada does not go along with this change?


The US border would be closed to Canadian NTP packets, to prevent
"Mad Clock Disease". Promises of a firm stance against Canadian
chronotons will prove effective in the 2006 Senate elections.
--
This signature intentionally left... Oh, darn!
Nov 15 '05 #5
Very good. 4/5 stars

Nov 15 '05 #6
On 10 Aug 2005 05:36:57 -0700, "GMM50" <ge***********@ att.net> wrote:
Very good. 4/5 stars


Thank you. Now, if only there was a clue as to what you're talking
about ...
--
Al Balmer
Balmer Consulting
re************* ***********@att .net
Nov 15 '05 #7
GMM50 wrote:
Very good. 4/5 stars


Learn how to quote. See other messages about that today.

Brian
Nov 15 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3668
by: Bathroom_Monkey | last post by:
For posterity's sake, here is an algorithm I created to take a GMT time and convert it to U.S. central time, accounting for daylight saving time. Note: this algorithm can be modified to work for any other U.S. timezone by changing the number of second subtracted at the end. <? $in_dst="false";
3
3261
by: chrisdevey | last post by:
Is there any way to make a System.Timers.Timer adjust for daylight savings time change? In a long running process I set a timer as follows for a daily expiration: _myTimer = new Timer(_myTimerDelegate, null, nextExpiration, TimeSpan.FromDays(1)); When we make the change out of daylight time back to standard time, the timer appears to fire one hour early (e.g., 4pm instead of 5pm). Is there a way to set this timer so that it is...
26
4600
by: geolev | last post by:
I'm trying to understand the effects of the Daylight Saving Time rule changes for 2007 in the US. Can anyone tell me how Javascript knows when to apply Daylight Saving Time in the following script? d1 = new Date(2006, 03, 01, 23, 00); d2 = new Date(2006, 03, 02, 04, 00); // Reports "This is ok: The answere should be 4. It is 4". alert("This is ok: The answer should be 4. It is " + (((d2.valueOf() - d1.valueOf())/1000)/60)/60);
6
4021
by: sugapablo | last post by:
I have an old machine running Mandrake 9.2 and PHP 4.3.1 hosting several websites. With the coming changes to daylight savings time in March 2007, what are my options in correcting the current calculation on this machine? Ideal option: RPM patch. Worst option: upgrade OS (it's a very old machine).
3
4328
by: mmuras | last post by:
I did not see any discussions / threads for this but if there is one please let me know: -First, I am one of only two individuals within my company's IT Dept. -We have a Windows Server 2003 R2 Standard Ed. Box for our Domain controller. -We are having issues STILL today in April with the Microsoft Windows Daylight Savings Issues ***Symptoms:
4
4404
by: Polaris431 | last post by:
I have a web application in ASP.NET that will be used globally. Data is collected on mobile devices running Windows Mobile and sent to the web server where it is stored and can be viewed. Data is timestamped when it is sent from a PDA device to the server. I am writing software for both the web app and the PDA. The web server is located at one location while the PDA devices are located around the world. The question is, how do I handle...
37
4690
by: David T. Ashley | last post by:
I have Red Hat Enterprise Linux 4. I was just reading up about UTC and leap seconds. Is it true on my system that the Unix time may skip up or down by one second at midnight when there is a leap second? By "Unix time" I mean the integer returned by time() and similar functions. I'm concerned about the "down" case. Some of the software I've written
3
482
by: Generic Usenet Account | last post by:
Hi, Is there any way to make time-of-day adjustments for daylight savings using only standard time functions? We have a program that executes daily at a fixed time of day. After daylight savings happens, the time-of-day alignment is lost. For example, if the daily task gets kicked in at 9 p.m. every evening, after daylight savings ends in fall, the task is shown as kicking in at 8 p.m. Similarly, if the daily task gets kicked in at...
27
6891
by: RobG | last post by:
I was investigating a function to determine whether daylight saving was being observed on a particular date (given the platform's regional settings) and came across a suggestion at merlyn.com to test the time zone offset on a variety of dates to see if it changes. Based on that, I developed the following checkDST() function which, as far as I can tell, should be sufficient. It checks either the date passed to it or the current date with...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10212
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10047
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9863
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8872
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5304
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.