hwclock

How Do You Programmatically Set the Hardware Clock on Linux?

Linux provides the stime(2) call to set the system time. However, while this will update the system's time, it does not set the BIOS hardware clock to match the new system time. Linux systems typically sync the hardware clock with the system time at shutdown and at periodic intervals. However, if the machine gets power-cycled before o...

Set the hardware clock in Python?

How do I set the hardware clock with Python on embedded linux systems? Regards, ...