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

Terje Mathisen "terje.mathisen at tmsw.no" at ntp.org
Fri Apr 29 16:18:34 UTC 2011

Cristian Seres wrote:
> Hi!
> 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?

Get yourself a refclock (i.e. 30-80 USD for a cheap gps with pps signal, 
then use the fudge time1 x.xxx time2 y.yyy ntp.conf commands to tell the 
server how much the internal clock should be offset from what the GPS 


- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"

More information about the questions mailing list