diff options
| author | root <root@turin.home> | 2022-01-30 15:21:37 +0000 |
|---|---|---|
| committer | root <root@turin.home> | 2022-01-30 15:21:37 +0000 |
| commit | 2304d17d5fa4b50d8ba0960af484d48a02bb14a6 (patch) | |
| tree | b11778728aeeb3fe469bb79db6457884b74039f1 | |
| parent | 7e0ee4b3b80773775bcd07ad622bcc34dce308d9 (diff) | |
Fixing date class
| -rw-r--r-- | date.py | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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")) + + |
