def parse_timespan_value(s):
    number, unit = split_number_and_unit(s)
    if not unit or unit == "s":
        return number
    elif unit == "min":
        return number * 60
    elif unit == "h":
        return number * 60 * 60
    elif unit == "d":
        return number * 24 * 60 * 60
    else:
        raise ValueError('unknown unit: {} (allowed are s, min, h, and d)'.format(unit))
Enqueue a record.
dataset/ETHPy150Open sosy-lab/benchexec/benchexec/util.py/parse_timespan_value--crossover with--dataset/ETHPy150Open saltstack/salt/salt/log/handlers/__init__.py/QueueHandler.enqueue