

def _isdst(dt):
    'Check if date is in dst.\n    '
    if (type(dt) == datetime.date):
        dt = datetime.datetime.combine(dt, datetime.datetime.min.time())
    dtc = dt.replace(year=datetime.datetime.now().year)
    if (time.localtime(dtc.timestamp()).tm_isdst == 1):
        return True
    return False

dataset/ETHPy150Open KoffeinFlummi/Chronyk/chronyk/chronyk.py _isdst/original