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


class date:
    def __init__(self):
        pass

    def day(self):
        int(datetime.now().strftime("%Y%m%d"))

    def time(self):
        int(datetime.now().strftime("%H%M%S"))