adding methods for timestamp
This commit is contained in:
parent
05bb9101b8
commit
102fb48d91
1 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Reference in a new issue