0.8.3 • Published 4 years ago
syncmytime v0.8.3
syncmytime
This package will sync and set the date of any Unix system.
Few words
Ultra accurate (0.01s) system date synchronization from multiple NTP public servers.
The server part is written in Typescript (Node.js) and the "date setting" part in C using the
system call clock_settime. This project has 0 dependencies.
Install
Make sure node-gyp is installed
apt-get install build-essential
npm install -g node-gypInstall package as root
npm install -g syncmytime # --unsafeRun as root
Unless -s <host argument is provided, running just syncmytime will fetch & set time from one of the following servers based on lowest latency:
pool.ntp.org
europe.pool.ntp.org
time.cloudflare.com
0.arch.pool.ntp.org
0.debian.pool.ntp.org
time.apple.com
ntp1.net.berkeley.edu
ntp1.hetzner.de
0.android.pool.ntp.orSetting env SYNCMYTIMEDEBUG=true will enable logging.