We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d325253 commit d121428Copy full SHA for d121428
adafruit_ntp.py
@@ -46,7 +46,7 @@ def __init__(
46
port: int = 123,
47
tz_offset: float = 0,
48
socket_timeout: int = 10,
49
- cache_seconds: int = 3600,
+ cache_seconds: int = 0,
50
) -> None:
51
"""
52
:param object socketpool: A socket provider such as CPython's `socket` module.
@@ -57,7 +57,7 @@ def __init__(
57
this.) For example, Pacific daylight savings time is -7.
58
:param int socket_timeout: UDP socket timeout, in seconds.
59
:param int cache_seconds: how many seconds to use a cached result from NTP server
60
- (default 3600).
+ (default 0, which respects NTP server's minimum).
61
62
self._pool = socketpool
63
self._server = server
0 commit comments