tags:

views:

70

answers:

1

Hi, What do i need to build a time clock which observes DST?

+5  A: 

Knowledge of the rules that govern DST, and a willingness to modify those rules as governments deem necessary. Or, access to an already-existing realtime clock that follows those rules, as you probably already have, given your question tag and where you asked the question.

Regional rules, of any stripe, are more painful to handle than they first appear. Much better to delegate that to your OS or programming framework.

Michael Petrotta
To amplify this answer: the chances of a person who is not already an expert in the field writing a **correct** world clock are pretty close to zero. For an individual who is already an expert in the field, the chances are slightly better.
msw
@msw: depends on your philosophy of probability. As a forward prediction "what odds would you take?", sure it's non-zero. As a post-hoc observation of frequency, I doubt that a system has ever been written that covered every country in the world and didn't later have to be patched to cope with some country or other doing something bizarre with its time zone or daylight savings ;-)
Steve Jessop