code: def to_pytime(self):
          
          nanoseconds = self._nsec
          hours = nanoseconds // 1000000000 // 60 // 60
          nanoseconds -= hours * 60 * 60 * 1000000000
          minutes = nanoseconds // 1000000000 // 60
          nanoseconds -= minutes * 60 * 1000000000
          seconds = nanoseconds // 1000000000
          nanoseconds -= seconds * 1000000000
          return datetime.time(hours, minutes, seconds, nanoseconds // 1000)
docs: Converts sql time object into Python's time object
          this will truncate nanoseconds to microseconds
          @return: naive time