def combine(cls, date, time): if Date(date) and Time(time): return cls(date.year, date.month, date.day, time.hour, time.minute, time.second, time.microsecond) return cls()