diff --git a/odin_api/utils/generators.py b/odin_api/utils/generators.py index d2de0e1..d0ae78d 100644 --- a/odin_api/utils/generators.py +++ b/odin_api/utils/generators.py @@ -1,5 +1,9 @@ +from datetime import datetime def generate_password(length=8): characters = string.ascii_letters + string.digits + string.punctuation password = ''.join(secrets.choice(characters) for _ in range(length)) - return password \ No newline at end of file + return password + +def generate_timestamp(): + return datetime.now().strftime("%Y-%m-%d %H:%M:%S") \ No newline at end of file