obspy.core.utcdatetime.UTCDateTime.strptime

static UTCDateTime.strptime(date_string, format)[source]

Return a UTCDateTime corresponding to date_string, parsed according to given format.

Parameters:
  • date_string (str) Date and time string.
  • format (str) Format string.
Returns:

UTCDateTime

See methods strftime() and strptime() for more information.