Re: dst and IsDaylightSaving
phil paxton <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.web |
|---|---|
| Message-ID | <[email protected]> |
On 2/13/07, Rich Armstrong <[email protected]> wrote: > >> ... not the least of which is an IsDaylightSavingsTime > > If your TimeZone class derives from System.TimeZone, I hope you didn't really > give the method that name. System.TimeZone's method is named > IsDaylightSavingTime. :) > > Ah - I see the problem. Coming from a country with 1 time zone makes you > a little blind to these types of issues, however I guess I do have > software running across 4 different time zones now which is why it all > runs based on UTC - have had the time zone and daylight savings issues > before. > > If it's any help, I'll offer my TimeZone classes [1] - basically, it's a > something I wrote a few years back to read all the time zones from the > registry, and there's a couple of functions in there (not the least of > which is an IsDaylightSavingsTime which takes a datetime and returns a > bool). You can select any timezone from the collection it builds as > well. > Dino I haven't looked at the code [yet], but do you cover those time zones which are just plain wacky? (places which are 15' different than a time zone it abuts?) The last startup I worked for needed comprehensive time zone coverage and I remember it was a *very* complex scenario (world-wide). p After my earlier explanation of Indiana's DST issues, I forgot to mention my prank which I never put into play. I was going to suggest Microsoft was fighting DST in Indiana because they'd have to create & test patches for all of the Windows products (at least in Indiana) in order to accommodate the various time zone changes. It's obviously flawed to technical people, but it would have made for some interesting entertainment on a couple of fronts. <snip> <snip><snip><snip> of a dozen unnecessary trailers =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com