title: c++ clock_gettime() and daylight savings
body: <p>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 during daylight savings when the time shifts by one hour.</p>
  
  <p>The system itself has NTP syncing it to always give the correct time in EST. Is there a way to get clock_gettime() to report the local time instead of UTC so I can avoid the daylight savings issue?</p>