GMT -> BST?

Associate
Joined
10 Feb 2004
Posts
198
Does anyone know a formula for calculating when we change to and from British summer time. I know its the last Sunday in March, and the last Sunday in October, but I'm looking for a way of calculating it.

Any info would be great :-)
Bill
 
Cheers Haircut, that is one way of doing it.

However, I'm sure there is a more "elegant" formula. Probably one that doesn't need to know the years calendar.

I have a computer system that has a clock built in. But the clock doesn't take any account of daylight saving. So what I was hoping for (in an ideal world) is a formula that you can use every time you read the clock to see if there should be an hour added/subtracted etc.

Cheers for the help so far.
 
Snooksy, Ta for that. Just the type of thing I'm looking for. And to be honest, so far, the best contender!

clv101, in my system, its difficult to change the time on the clock so we never do it. So for example its always set to GMT. Then on top of that we only ever read it during initialisation at switch on, so maybe once a day. Then it makes sense to re-calc daylight saving every time. Or at least I can't think of a better way to do it! Oh for an operating system!!
 
Back
Top Bottom