strptime¶
- tifffile.strptime(datetime_string, format=None, /)¶
Return datetime corresponding to date string using common formats.
- Parameters:
datetime_string (str) – String representation of date and time.
format (str | None) – Format of datetime_string. By default, several datetime formats commonly found in TIFF files are parsed.
- Raises:
ValueError – datetime_string does not match any format.
- Return type:
datetime
Examples
>>> strptime('2022:08:01 22:23:24') datetime.datetime(2022, 8, 1, 22, 23, 24)