diff --git a/src/logic/time_handler.py b/src/logic/time_handler.py new file mode 100644 index 0000000..6dc3a0b --- /dev/null +++ b/src/logic/time_handler.py @@ -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