System Clock APIs
The system clock APIs are:
- adjtime() (Adjust system clock) makes small adjustments to the software clock, either slowing it down or speeding it up by the time specified in the delta parameter.
- ftime() (Get Date and Time) retrieves the current Coordinated Universal Time (UTC).
- gettimeofday() (Get Current UTC Time) retrieves the current Coordinated Universal Time (UTC) and places it in the timeval structure pointed to by tp.
- settimeofday() (Set System Clock) sets the system clock to the Coordinated Universal Time (UTC) contained in the timeval structure pointed to by tp.
Note: These functions use header (include) files from the library QSYSINC, which is optionally installable. Make sure QSYSINC is installed on your system before using any of the functions. See Header Files for UNIX®-Type Functions for the file and member name of each header file.