mirror of
https://github.com/wolfswolke/DeathGarden_API_Rebirth.git
synced 2026-09-10 01:56:17 -05:00
Added time_handler.py
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user