Skip to main content

Joe's own ntpdate: set the date and time via NTP

Project description

Travis Continous Integration Coveralls Code Coverage Latest Version License Downloads

Joe’s Own ntpdate

Set the date and time via NTP.

Assumes bsd or gnu date(1) and gnu hwclock(8) if applicable.

This implementation doesn’t mess around. It requires root privileges, and sets the operating system and hardware clock to whatever value is found by the given ntp server.

usage: joes-ntpdate [-h] [--set-system] [--set-hwclock] [--retries [N]]
                    [--backoff-factor N]
                    [ntp_host]

Joe's own ntpdate: report or set clock by remote ntp host.

positional arguments:
  ntp_host            remote ntp host to synchronize clock with. (default:
                      pool.ntp.org)

optional arguments:
  -h, --help          show this help message and exit
  --set-system        Set system clock to remote time. (default: False)
  --set-hwclock       additionally, set hardware clock. May do nothing on
                      platforms without hwclock(8) (default: False)
  --retries [N]       retry on failure up to N times. (default: 30)
  --backoff-factor N  retry backoff each step, sleep for {{<backoff-factor> *
                      <retry-step>}} (default: 2.0)

Assumes bsd or gnu date(1) and gnu hwclock(8) if applicable.

This package uses ntplib

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

joes-ntpdate-1.9.76.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

joes_ntpdate-1.9.76-py2.py3-none-any.whl (9.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file joes-ntpdate-1.9.76.tar.gz.

File metadata

File hashes

Hashes for joes-ntpdate-1.9.76.tar.gz
Algorithm Hash digest
SHA256 6be34674bbaff880a92533123a932f91c33f8fdc75e827056ccecb49b4bf412d
MD5 ebbcfc735d8da6a4c8dbb797549020c7
BLAKE2b-256 4d716f7e7edfc6aea3530d991920ab270a72fdd85104b99742749f67b7e7c34d

See more details on using hashes here.

File details

Details for the file joes_ntpdate-1.9.76-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for joes_ntpdate-1.9.76-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0fd657840a315b3c2b8a7060ef5817344169d3c8167f132785cceb39eb2a524b
MD5 35144133afbaede634756164bb7f1068
BLAKE2b-256 16d8b5246ab9923f0714e2c50cfd4952cdd139212fa01b824e31ab0ec352ec05

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page