Source code for ssapy_toolkit.Time_Functions.now_time
from datetime import datetime
[docs]
def now():
"""
Returns the current time in the format 'YYYY-MM-DD HH:MM'.
Returns
-------
str
The current date and time as a formatted string.
Author: Travis Yeager (yeager7@llnl.gov)
"""
return datetime.now().strftime('%Y-%m-%d %H:%M')