utils/Utils.py
def parseTime(val:object = 0) -> timedelta:
    """Helper method to convert time strings to datetime objects.

    Agnostic of time string format.

    :param val: Time string or float.
    :return: timedelta object.
    """
    val=str(val)
    fmt=guessTimeFormat(val)
    try:
        parsed=datetime.strptime(val, fmt)
    except ValueError:
        parsed=pandas.to_datetime(val, unit='s')
    return datetime.combine(date.min,parsed.time())-datetime.min
Helper method to convert time strings to datetime objects.

    Agnostic of time string format.

    :param val: Time string or float.
    :return: timedelta object.
    
Helper method to convert time strings to datetime objects.
Agnostic of time string format.
Helper method to convert time strings to datetime objects . Agnostic of time string format .
def parseTime(val:object = 0) -> timedelta:
    val=str(val)
    fmt=guessTimeFormat(val)
    try:
        parsed=datetime.strptime(val, fmt)
    except ValueError:
        parsed=pandas.to_datetime(val, unit='s')
    return datetime.combine(date.min,parsed.time())-datetime.min
def parseTime ( val : object = 0 ) -> timedelta : val = str ( val ) fmt = guessTimeFormat ( val ) try : parsed = datetime . strptime ( val , fmt ) except ValueError : parsed = pandas . to_datetime ( val , unit = 's' ) return datetime . combine ( date . min , parsed . time ( ) ) - datetime . min
Helper method to convert time strings to datetime objects.
Helper method to convert time strings to datetime objects .
"""Helper method to convert time strings to datetime objects.

    Agnostic of time string format.

    :param val: Time string or float.
    :return: timedelta object.
    """
None
val
object
Time string or float.
Time string or float .