I am using clock_gettime() in my C++ program to get the current time. However, the return value is seconds since epoch in UTC. This code can get messed up in my time zone durin
#include time_t rawtime; struct tm *timeinfo; time(&rawtime); timeinfo = localtime(&rawtime); if (timeinfo->tm_isdst) Hour -= 1; // daylight savings time