hardware-clock synchronization
hi
How do i synchronize hardware-clock with system-clock without using 'hwclock' and 'NTP'? Is there any way to do this job with programming? |
Look for adjtimex function
|
No sorry, adjtimex is for system clock (as NTP, NTP doesn't deal with your RTC).
Take a look to the ioctl provided for /dev/rtc, or download "hwclock" sources to see how it does the job. |
2 Q's:
OP, I'm curious (not critical), why the objection to hwclock? (Does it relate to:) Anyone, Is there anyway to get the actual, the raw, BIOS h/w clock time from the CLI? In other words to verify that it is set to UTC as I intend & have told hwclock? I have read the hwclock man page & I don't see any way to do this. If I am reading it correctly, I tell hwclock which I think it, the BIOS clock, is set to, but there is no way to verify that my intentions have been carried out (& not changed), short of rebooting & checking the BIOS Setup. |
All times are GMT -5. The time now is 07:32 PM. |