def format_datetime(t: datetime = None):
return (datetime.now() if t is None else t).strftime('<STR_LIT>')<EOL>
Format a datetime object into yyyy-MM-dd hh:mm:ss
:param t: datetime object, default: now
:return: the formatted string