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]

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

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

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.

Files for joes-ntpdate, version 1.9.78
Filename, size File type Python version Upload date Hashes
Filename, size joes_ntpdate-1.9.78-py2.py3-none-any.whl (9.7 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size joes-ntpdate-1.9.78.tar.gz (6.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page