obspy.core.utcdatetime.UTCDateTime.strftime

UTCDateTime.strftime(format)[source]

Return a string representing the date and time, controlled by an explicit format string.

Parameters:format (str) Format string.
Returns:Formatted 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.