adafruit_ntp

Network Time Protocol (NTP) helper for CircuitPython

  • Author(s): Scott Shawcroft

Implementation Notes

Hardware: Software and Dependencies:

class adafruit_ntp.NTP(socketpool, *, server: str = '0.adafruit.pool.ntp.org', port: int = 123, tz_offset: int = 0)

Network Time Protocol (NTP) helper module for CircuitPython. This module does not handle daylight savings or local time. It simply requests UTC from a NTP server.

property datetime: time.struct_time

Current time from NTP server.