summaryrefslogtreecommitdiff
path: root/date.py
diff options
context:
space:
mode:
authorroot <root@turin.home>2022-01-22 16:47:15 +0000
committerroot <root@turin.home>2022-01-22 16:47:15 +0000
commitb6698810b9ff40a2d91b71c61017667642db212a (patch)
tree1c12debc99893ffc120f03c294bdf096497ae1e5 /date.py
parent3245f4ddbd89c0f4cc5ef902bbdaead4e29cdac3 (diff)
Date functionality, inserting into sql
Diffstat (limited to 'date.py')
-rw-r--r--date.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/date.py b/date.py
new file mode 100644
index 0000000..d04d76a
--- /dev/null
+++ b/date.py
@@ -0,0 +1,10 @@
+import time
+from datetime import datetime
+
+class date:
+ def __init__():
+ pass
+ def day():
+ int(datetime.now().strftime('%Y%m%d'))
+ def time():
+ int(datetime.now().strftime('%H%M%S'))