summaryrefslogtreecommitdiff
path: root/dates.py
diff options
context:
space:
mode:
authorroot <root@turin.home>2022-01-30 15:23:36 +0000
committerroot <root@turin.home>2022-01-30 15:23:36 +0000
commite858cc8e4c644568766db0e2609b243248402379 (patch)
tree608a3740f37a77a9752a5f93a5ae4cf2881cd710 /dates.py
parent2304d17d5fa4b50d8ba0960af484d48a02bb14a6 (diff)
Dates class problem in heating
Diffstat (limited to 'dates.py')
-rw-r--r--dates.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/dates.py b/dates.py
new file mode 100644
index 0000000..77df9ab
--- /dev/null
+++ b/dates.py
@@ -0,0 +1,18 @@
+import time
+from datetime import datetime
+
+
+class date:
+ def __init__(self):
+ pass
+
+ def day(self):
+ return int(datetime.now().strftime("%Y%m%d"))
+
+ def time(self):
+ return int(datetime.now().strftime("%H%M%S"))
+
+ def date(self):
+ return int(datetime.now().strftime("%A"))
+
+