blob: 3c9b8a4fc67a251c9e81a8c4a725cd1e25fcbebe (
plain)
1
2
3
4
5
6
7
8
9
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")
|