def get_timedelta_in_seconds(time_interval):
    """Convert time delta as string into numeric value in seconds

    :param time_interval: time interval as string in format HH:MM:SS.FFFFFF
    :return: time interval in seconds
    """
    if ":" not in time_interval:
        return 0
    (hours, minutes, sf) = time_interval.split(":")
    (seconds, fraction) = sf.split(".") if "." in sf else (0, 0)
    secs = int(hours) * 60 * 60 + \
           int(minutes) * 60 + \
           int(seconds) + \
           int(fraction) / 1000000
    return secs