Get the farthest time from the instance.
(self, dt1: Time | time, dt2: Time | time)
| 75 | return dt2 |
| 76 | |
| 77 | def farthest(self, dt1: Time | time, dt2: Time | time) -> Self: |
| 78 | """ |
| 79 | Get the farthest time from the instance. |
| 80 | """ |
| 81 | dt1 = self.__class__(dt1.hour, dt1.minute, dt1.second, dt1.microsecond) |
| 82 | dt2 = self.__class__(dt2.hour, dt2.minute, dt2.second, dt2.microsecond) |
| 83 | |
| 84 | if self.diff(dt1).in_seconds() > self.diff(dt2).in_seconds(): |
| 85 | return dt1 |
| 86 | |
| 87 | return dt2 |
| 88 | |
| 89 | # ADDITIONS AND SUBSTRACTIONS |
| 90 |