def _isdst(dt):
    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
Check if date is in dst.
dataset/ETHPy150Open KoffeinFlummi/Chronyk/chronyk/chronyk.py/_isdst