[ntp:questions] How to keep fake time in past/future?

Steve Kostecke kostecke at ntp.org
Fri Apr 29 12:38:52 UTC 2011


On 2011-04-29, Cristian Seres <cristian-2 at contrasec.fi> wrote:

> How would you implement an NTP server which would need to offer a time 
> set deliberately in past/future, say 365*86400 seconds, or even better - 
> first set the freely chosen date on NTP server and then keep the hours, 
> minutes and seconds in sync with the real time?

If you're not concerned with clock stability just configure ntpd with
only the Undisciplined Local Clock driver (127.127.1.x) and set the
kernel clock to what ever time you need.

If you need a stable clock add PPS source and mark the Undisciplined
Local Clock as the prefer source.

Another approach is External Clock Discipline and the Local Clock Driver
http://doc.ntp.org/4.2.6p3/extern.html

-- 
Steve Kostecke <kostecke at ntp.org>
NTP Public Services Project - http://support.ntp.org/




More information about the questions mailing list