diff --git a/src/utils/core.py b/src/utils/core.py index 4c90217..f008b79 100644 --- a/src/utils/core.py +++ b/src/utils/core.py @@ -180,5 +180,11 @@ def stringTempsVersSecondes(time): return remindertime -def nowTimestamp(): +def nowTimestampCustom(): return datetime.now(timezone(myTimezone)).timestamp() + +def nowTimestampUTC(): + return datetime.utcnow().timestamp() + +def intToTimestamp(int): + return datetime.fromtimestamp(int)