- str2time(value)¶
Parse a string into a time value using ISO format.
This is just an alias for
datetime.time.fromisoformat.- Parameters:
value (
str) – The time string in ISO format (HH:MM:SS).- Raises:
ValueError – If the string is not a valid ISO time format.
- Return type:
time- Returns:
The parsed time object.