
On 21.10.15 12:20, Morrie Wyatt wrote:
I'm basing this answer on you using ntp or similar to sync your time from a suitable source. ... One of the following, depending upon if you have your hardware clock on local time or utc.
hwclock --systohc --localtime
hwclock --systohc --utc
An ntpd is what kept my host within a fraction of a second for five years with ubuntu 10.04, IIRC, while the absence of it has the same machine several minutes off in a year under debian 7.8.0. On debian, the first thing I've found (prompted by this thread) is the "ntpdate" package. Its manpage describes invocation in a startup script, i.e. it's an alternative to ntpd. (And won't act if an ntpd is running.) It doesn't seem to take any notice of /etc/ntp.conf, but works with a server specified on the command line. Aaah, I see the need for the manual/scripted setting of hwclock; ntpdate doesn't touch that. (ntpd maybe didn't either, but that didn't show.) Must try openntpd - on another evening. Erik