I'm using time.h in Microchip C32. In my system, I'm storing all times as UTC. For display, I can convert to a local or advanced (DST) time by adding an offset, then using ctime() to show the results. The trick is how can I determine based on a time stamp whether to apply the DST offset or not? It appears there are various rules around the world (and some places don't do DST at all). So, ideally, I'd like to be able to pass in a timestamp and the rules and get back yes it's DST or no. As far as I can tell, the transition times are always on a Sunday at 2am local (whether advanced or not). The week (and perhaps the month) of the transitions change. I've Googled around and found some stuff in PHP, but nothing in C. Ideas? THANKS! 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 .