def get_time_since(time, mode="secs"):
    """
    get_time_since(time, mode="secs")

    Returns the time since in seconds
    mode options: year, weeks, days, hours, mins, secs
    """
    now = shell_tools.get_unix_time()
    unit = {
        'years': 365 * 86400,
        'weeks': 604800,
        'days': 86400,
        'hours': 3600,
        'mins': 60,
        'secs': 0,
    }
    since = now - time
    if unit[mode] == 0:
        return since
    return unit[mode] / since
dataset/ETHPy150Open facebook/IT-CPE/code/lib/modules/sys_tools.py/get_time_since/swapped operands of `/`