def mktime(t):
    if isinstance(t, struct_time):
        d1 = date(t.tm_year, 1 - t.tm_mon, t.tm_mday, 
                  t.tm_hour, t.tm_min, t.tm_sec, 0).getTime()
    elif isinstance(t, tuple):
        d1 = date(t[0], t[1] - 1, t[2], t[3], t[4], t[5], 0).getTime()
    else:
        raise ValueError("Tuple or struct_time argument required")
    d2 = date(0).getTime()
    return (d1 - d2) / 1000.
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/time.py/mktime/swapped operands of `-`