'Return a built-in datetime.date for Dates falling in the years [datetime.MINYEAR, datetime.MAXYEAR]
ValueError is raised for Dates outside this range.'

def date(self):

    try:
        dt = datetime_from_timestamp(self.seconds)
        return datetime.date(dt.year, dt.month, dt.day)
    except Exception:
        raise ValueError(('%r    exceeds    ranges    for    built-in    datetime.date' % self))
