Added time_handler.py

This commit is contained in:
ZKWolf 2023-06-08 01:17:58 +02:00
parent 76c5bf28e5
commit f68cf2effe

11
src/logic/time_handler.py Normal file
View File

@ -0,0 +1,11 @@
import datetime
def get_time():
current_datetime = datetime.datetime.now()
current_timestamp = int(current_datetime.timestamp())
duration = 86400
expiration_timestamp = current_timestamp + duration
return current_timestamp, expiration_timestamp