Skip to content

Commit 772dab6

Browse files
Black reformatting
1 parent 8ab96a1 commit 772dab6

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

adafruit_ntp.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,14 @@
2222
"""
2323
`adafruit_ntp`
2424
================================================================================
25-
2625
Network Time Protocol (NTP) helper for CircuitPython
27-
28-
2926
* Author(s): Brent Rubell
30-
3127
Implementation Notes
3228
--------------------
33-
3429
**Hardware:**
35-
3630
**Software and Dependencies:**
37-
3831
* Adafruit CircuitPython firmware for the supported boards:
3932
https://github.com/adafruit/circuitpython/releases
40-
4133
"""
4234
import time
4335
import rtc
@@ -49,7 +41,6 @@
4941
class NTP:
5042
"""Network Time Protocol (NTP) helper module for CircuitPython.
5143
This module does not handle daylight savings or local time.
52-
5344
:param adafruit_esp32spi esp: ESP32SPI object.
5445
"""
5546

@@ -64,12 +55,11 @@ def __init__(self, esp):
6455
def set_time(self, tz_offset=0):
6556
"""Fetches and sets the microcontroller's current time
6657
in seconds since since Jan 1, 1970.
67-
6858
:param int tz_offset: The offset of the local timezone,
6959
in seconds west of UTC (negative in most of Western Europe,
7060
positive in the US, zero in the UK).
7161
"""
72-
62+
7363
try:
7464
now = self._esp.get_time()
7565
now = time.localtime(now[0] + tz_offset)

0 commit comments

Comments
 (0)