Re: Date and Clock differ by 10 seconds
From: prg (rdgentry1_at_cablelynx.com)
Date: 05/12/05
- Next message: Tommy Reynolds: "Re: enable ident"
- Previous message: Jeremy Billones: "Date and Clock differ by 10 seconds"
- In reply to: Jeremy Billones: "Date and Clock differ by 10 seconds"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 12 May 2005 08:48:31 -0700
Jeremy Billones wrote:
> $ /bin/date; /sbin/clock
> Thu May 12 12:51:10 GMT 2005
> Thu 12 May 2005 12:51:22 PM GMT -0.676119 seconds
> $
>
> Does anyone have any idea why those two commands would return
different
> results? (No, it doesn't take 12 seconds to process :)
date returns the kernel's system time/date.
clock returns the value of the RTC/CMOS/BIOS/hardware clock's
date/time.
On most (?) systems clock is a link to hwclock.
This large time difference suggests that the RTC is not being adjusted
to remain reasonably synched with the kernel's system clock. Should
"normally" be within a second or two.
You'll have to look at how your system scripts synch the two clocks.
Many systems write the system time to RTC on shutdown or by running
ntpd or a cron that writes to RTC periodically.
But systems/setups vary and getting it wrong can really foul things up,
so be sure to learn what your system needs. Also check:
$ man hwclock
$ man adjtimex
hth,
prg
email above disabled
- Next message: Tommy Reynolds: "Re: enable ident"
- Previous message: Jeremy Billones: "Date and Clock differ by 10 seconds"
- In reply to: Jeremy Billones: "Date and Clock differ by 10 seconds"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|