

def _dfromtimestamp(timestamp):
    'Custom date timestamp constructor. ditto\n    '
    try:
        return datetime.date.fromtimestamp(timestamp)
    except OSError:
        timestamp -= time.timezone
        d = (datetime.date(1970, 1, 1) + datetime.timedelta(seconds=timestamp))
        if _isdst(d):
            timestamp += 3600
            d = (datetime.date(1970, 1, 1) + datetime.timedelta(seconds=timestamp))
        return d

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