Skip to content

Commit 13ad13a

Browse files
authored
Merge pull request #24 from jdimpson/patch-1
2 parents 587d1a4 + 4595339 commit 13ad13a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adafruit_ntp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ def __init__(
6767

6868
@property
6969
def datetime(self) -> time.struct_time:
70-
"""Current time from NTP server."""
70+
"""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"""
7173
if time.monotonic_ns() > self.next_sync:
7274
self._packet[0] = 0b00100011 # Not leap second, NTP version 4, Client mode
7375
for i in range(1, len(self._packet)):

0 commit comments

Comments
 (0)