Skip to main content

Extend datetime module so it can return the time fetched from a NTP poolserver

Project description

https://img.shields.io/pypi/v/ntpdatetime.svg https://img.shields.io/travis/igroen/ntpdatetime.svg Documentation Status https://coveralls.io/repos/igroen/ntpdatetime/badge.svg?branch=master&service=github

Extend datetime module so it can return the time fetched from an NTP server

Features

  • Get the current time fetched from an NTP poolserver

Credits

Tools used in rendering this package:

History

0.1.0 (2015-11-25)

  • First release on PyPI.

0.1.1 (2015-11-26)

  • ntp_now() Now returns a tuple containing the current datetime and a boolean value:

    True  # Time was fetched from an NTP server
    False  # Error occurred when connection to an NTP poolserver. System datetime is returned

0.1.2 (2015-11-27)

  • Patch for release on pypi. Old version (0.1.1) was removed and cannot be released again.

0.1.3 (2015-12-01)

  • Update unittests

0.1.4 (2015-12-01)

  • Mock all request

  • Update docstrings

0.1.5 (2015-12-02)

  • Add flake8 test to travis configuration

  • Update development settings in requirements_dev.txt

0.1.6 (2017-03-04)

  • Remove requirements_dev.txt

0.1.7 (2019-05-04)

  • Fixed typo in comment

  • Update travis build to use python3.7

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

ntpdatetime-0.1.7.tar.gz (13.1 kB view hashes)

Uploaded Source

Built Distribution

ntpdatetime-0.1.7-py2.py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 2 Python 3

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