Previous topic

pyrem.io module

This Page

pyrem.utils module

pyrem.utils.str_to_time(str)[source]

Parse a string describing a duration as a timedelta

Parameters:str (str) – a string with the format “XhYmZs”. where XYZ are integers (or floats)
Returns:a timedelta corresponding to the str argument
Return type:timedelta