UTC programming in C++

How do I write code that will automatically correct itself when Daylight Savings Time changes to Standard Time. I.E. I'm in the Central Time Zone. I'm writing for a personal program that needs to display UTC time all the time. I understand how to calculate it in C++ today, but, there is no code example for when the change occurs. Today, I'm -5 hrs from GMT...in a month or two it will be -6 hrs.

In other words, how do I write code to "know" the specific dates of change are, especially since the USA keeps changing those dates?????

Thanks for any help!!
Well, your OS should keep track of this as long as it connected to the internet. They just use NTP or SNTP.
Topic archived. No new replies allowed.