code: def dbRestore(self, db_value, context=None):
          
          if isinstance(db_value, datetime.timedelta):
              hours, remain = divmod(db_value.seconds, 3600)
              minutes, seconds = divmod(remain, 60)
              return datetime.time(hours, minutes, seconds)
          else:
              return super(TimeColumn, self).dbRestore(db_value, context=context)
docs: Converts a stored database value to Python.
  
          :param py_value: <variant>
          :param context: <orb.Context>
  
          :return: <variant>