diff options
| author | root <root@turin.home> | 2022-01-22 16:47:15 +0000 |
|---|---|---|
| committer | root <root@turin.home> | 2022-01-22 16:47:15 +0000 |
| commit | b6698810b9ff40a2d91b71c61017667642db212a (patch) | |
| tree | 1c12debc99893ffc120f03c294bdf096497ae1e5 /date.py | |
| parent | 3245f4ddbd89c0f4cc5ef902bbdaead4e29cdac3 (diff) | |
Date functionality, inserting into sql
Diffstat (limited to 'date.py')
| -rw-r--r-- | date.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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')) |
