code: def closest(self, dt1, dt2):
          
          dt1 = self.__class__(dt1.hour, dt1.minute, dt1.second, dt1.microsecond)
          dt2 = self.__class__(dt2.hour, dt2.minute, dt2.second, dt2.microsecond)
  
          if self.diff(dt1).in_seconds() < self.diff(dt2).in_seconds():
              return dt1
  
          return dt2
docs: Get the closest time from the instance.
  
          :type dt1: Time or time
          :type dt2: Time or time
  
          :rtype: Time