> Harold Hallikainen wrote: > >> As far as I can tell, the transition times are always on a Sunday at 2am >> local (whether advanced or not). > > Nope; transition times in Brazil are 00:00 (back to 23:00 of the > previous day, or forward to 01:00) . I > suspect other countries have other times, too -- the world is a big, > messy place :) > >> The week (and perhaps the month) of the transitions change. > > Definitely. For Brasil, it even depends on when Carnival is: Generally > DST ends on the third Saturday (that is, between Saturday and Sunday) in > February -- unless that's the weekend before Carnival, in which case it > is one week later. > > I didn't understand what exactly you want to do. Do you want to create a > collection of DST rules? > > Gerhard Thanks for the comments! What I'd like is some sort of function that I can pass in the current UTC time stamp (maybe I have to also add the local time offset) and a rule and get back a yes or no answer for is DST in effect at this time. I'd then add 3600 to the time stamp (plus local offset) before sending it to ctime to display the local time. I'd probably have some method for the user to define the rule for use at that location instead of trying to maintain some big table of rules. Harold --=20 FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .