Return a string representing the date and time, controlled by an explicit format string.
Parameters: | format (str) Format string. |
---|---|
Returns: | Formated string representing the date and time. |
Format codes referring to hours, minutes or seconds will see 0 values. See methods strftime() and strptime() for more information.