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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file ntpdatetime-0.1.7.tar.gz.

File metadata

  • Download URL: ntpdatetime-0.1.7.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for ntpdatetime-0.1.7.tar.gz
Algorithm Hash digest
SHA256 7e5fc32c3f091b179fb2d8755d0c71e54e1c4cbe1f2d64ea02d55c557b90174d
MD5 abb506c00669882cb4321e0f9efbaf26
BLAKE2b-256 7035770ffb8346b78d60fba299ff37179b656ce0a55d6231a38f2410b0167e4f

See more details on using hashes here.

File details

Details for the file ntpdatetime-0.1.7-py2.py3-none-any.whl.

File metadata

  • Download URL: ntpdatetime-0.1.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for ntpdatetime-0.1.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4edac1b7d214d9272241a869a8ebfb03d6b25e426d7a3be7e0c0033766600e3f
MD5 74029f9d7d1d0de163c152649b883b73
BLAKE2b-256 1ab918f547dd8c75b851cad188ecda1556e0f421e6a55ad55148887b40ac2c0f

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