Timity module:
Get time easily.
Copy the following text into your IDE:
import datetime as dt
class timity:
formatt = "%H:%M:%S"
time = "?"
@staticmethod
def format(format="%H:%M:%S"):
format.replace("<HOUR>","%H")
format.replace("<SEC>","%S")
format.replace("<MIN>","%M")
format.replace("<DAY>","%D")
format.replace("<MON>","%m")
format.replace("<YEAR>","%Y")
timity.formatt = format
@staticmethod
def gettime():
time = dt.datetime.now()
time = time.strftime(timity.formatt)
timity.time = time
# TO USE:
# use this in a different file titled "timity.py"
# in your other file(s) type "from timity import timity" on the first line