diff options
Diffstat (limited to 'autogpts/autogpt/autogpt/commands/times.py')
-rw-r--r-- | autogpts/autogpt/autogpt/commands/times.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/autogpts/autogpt/autogpt/commands/times.py b/autogpts/autogpt/autogpt/commands/times.py new file mode 100644 index 000000000..3c9b8a4fc --- /dev/null +++ b/autogpts/autogpt/autogpt/commands/times.py @@ -0,0 +1,10 @@ +from datetime import datetime + + +def get_datetime() -> str: + """Return the current date and time + + Returns: + str: The current date and time + """ + return "Current date and time: " + datetime.now().strftime("%Y-%m-%d %H:%M:%S") |