def __hash__(self): if self.hour != Hour("00:00"): return hash(Date.__hash__(self) * hash(self.hour)) return hash(Date.__hash__(self))