We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 587d1a4 + 4595339 commit 13ad13aCopy full SHA for 13ad13a
adafruit_ntp.py
@@ -67,7 +67,9 @@ def __init__(
67
68
@property
69
def datetime(self) -> time.struct_time:
70
- """Current time from NTP server."""
+ """Current time from NTP server. Accessing this property causes the NTP time request,
71
+ unless there has already been a recent request. Raises OSError exception if no response
72
+ is received within socket_timeout seconds"""
73
if time.monotonic_ns() > self.next_sync:
74
self._packet[0] = 0b00100011 # Not leap second, NTP version 4, Client mode
75
for i in range(1, len(self._packet)):
0 commit comments