C functions to set the linux hardware clock

From: flair (fr.lair_at_laposte.net)
Date: 03/30/04


Date: 30 Mar 2004 04:30:20 -0800

Hi,

I am programming a software in C language, for Linux. This software
(running in super-user mode) will have to set the hardware clock.
Which C functions can I use to adjust the hardware clock?

I have already tried to use the function "settimeofday", but when I
restart the computer, the time is not saved.

Thanks
Flair



Relevant Pages