adding methods for timestamp

This commit is contained in:
Mylloon 2021-06-03 14:26:14 +02:00
parent 05bb9101b8
commit 102fb48d91

View file

@ -180,5 +180,11 @@ def stringTempsVersSecondes(time):
return remindertime return remindertime
def nowTimestamp(): def nowTimestampCustom():
return datetime.now(timezone(myTimezone)).timestamp() return datetime.now(timezone(myTimezone)).timestamp()
def nowTimestampUTC():
return datetime.utcnow().timestamp()
def intToTimestamp(int):
return datetime.fromtimestamp(int)