This commit is contained in:
2026-06-16 13:02:06 +02:00
commit 9e45f1f199
29 changed files with 2531 additions and 0 deletions

9
test-time.py Normal file
View File

@@ -0,0 +1,9 @@
import time
import ntptime
tz_offset = 0
utc = time.localtime()
local = time.localtime(time.mktime(utc) + tz_offset * 3600)
ctime = f"{local[0]:02}-{local[1]:02}-{local[2]:02} {local[3]:02}:{local[4]:02}:{local[5]:02}"
#print("Time =", local[0] + '-' + local[1] + '-' + local[2])
#print("Time =", local)
print("Time =", ctime)