Jump to ID:
Qt

Project Home

Discussions

Wiki

Project Info
Forum Topic - Setting the system time?: Page 1 of 2 (2 Items)
   
 
 
Setting the system time?  
I have a thread which obtains the time from NMEA GPS string, I want to use this time to set the system clock.

I can spawn date but I would rather use clock_settime().  How can I translate, year, month, day, hours, minutes and 
seconds into a timespec for use with clock_settime?