summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@turin.home>2022-01-30 15:21:37 +0000
committerroot <root@turin.home>2022-01-30 15:21:37 +0000
commit2304d17d5fa4b50d8ba0960af484d48a02bb14a6 (patch)
treeb11778728aeeb3fe469bb79db6457884b74039f1
parent7e0ee4b3b80773775bcd07ad622bcc34dce308d9 (diff)
Fixing date class
-rw-r--r--date.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/date.py b/date.py
index b522330..77df9ab 100644
--- a/date.py
+++ b/date.py
@@ -7,7 +7,12 @@ class date:
pass
def day(self):
- int(datetime.now().strftime("%Y%m%d"))
+ return int(datetime.now().strftime("%Y%m%d"))
def time(self):
- int(datetime.now().strftime("%H%M%S"))
+ return int(datetime.now().strftime("%H%M%S"))
+
+ def date(self):
+ return int(datetime.now().strftime("%A"))
+
+