mirror of
https://github.com/wolfswolke/DeathGarden_API_Rebirth.git
synced 2026-07-17 10:13:15 -05:00
Added time_handler.py
This commit is contained in:
parent
76c5bf28e5
commit
f68cf2effe
11
src/logic/time_handler.py
Normal file
11
src/logic/time_handler.py
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user