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?????