Spaces:
Runtime error
Runtime error
File size: 244 Bytes
0534c31 |
1 2 3 4 5 6 7 8 9 10 11 |
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")
|