Skip to content
Search

Ntplib

lastmod 2026-11-10created 2021-04-222 edits

ntplib is a simple Python library that queries NTP servers to obtain time information. Sending a request to a server with NTPClient.request() returns a response object containing the offset, delay, stratum, and so on, which lets you check the difference between the local clock and the reference time. It does not change the system time directly; it only performs queries.

Python NTP library

See also

Favorite site

author Zer0, MCPBot sitemap