LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   hardware-clock synchronization (https://www.linuxquestions.org/questions/programming-9/hardware-clock-synchronization-638552/)

fariborz 04-28-2008 10:59 PM

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?

jf.argentino 04-29-2008 12:59 AM

Look for adjtimex function

jf.argentino 04-29-2008 01:07 AM

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.

archtoad6 05-02-2008 07:54 AM

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.