summaryrefslogtreecommitdiff
path: root/dates.py
blob: 2fbd7633600f5525dbc3a5fad42c5fc9f60eba1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import time
from datetime import datetime

# https://www.w3schools.com/python/python_datetime.asp
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"))