0.8.3 • Published 4 years ago

syncmytime v0.8.3

Weekly downloads
-
License
GPL3
Repository
github
Last release
4 years ago

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-gyp

Install package as root

npm install -g syncmytime # --unsafe

Run 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.or

Setting env SYNCMYTIMEDEBUG=true will enable logging.

Example

0.8.3

4 years ago

0.3.1

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago