Comments (1)
Hi @davidyang429 ,
ntplib is designed to be an implementation of the ntp protocol.
But this ntp synchronised status is not part of the ntp protocol, it's implemented by the ntp client/daemon, and is actually quite complex (dealing with outliers, etc).
So there is no access to this status from ntplib - which queries a single server btw.
Depending on what you are trying to achieve, you might get away which just checking that the offset is lower than an hard-coded threshold but it's probably fragile: I guess that if you just want this status you might have to query whatever client your machine is using.
Cheers,
from ntplib.
Related Issues (17)
- Where can we install python2-ntplib 0.3.3 now? HOT 7
- Formatting error when stratum = 0 HOT 1
- PermissionError: [Errno 1] Operation not permitted HOT 1
- Very inaccurate client fails to request NTP data HOT 5
- Could you please push tag 0.3.4? HOT 1
- async support? HOT 3
- proxy support? HOT 1
- Randomize the addresses HOT 1
- Stratum 0 fails stratum_to_text function HOT 1
- append nts HOT 1
- Google Colab: gaierror: [Errno -8] Servname not supported for ai_socktype HOT 8
- `ntplib.ref_id_to_text(response.ref_id)` is not working correctly HOT 2
- Bug due to float imprecision
- Syncing the system time HOT 1
- Don't delete old versions on pypi HOT 1
- Please upload source tarballs to pypi in addition to wheels HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ntplib.