code: def greater_than(self, greater_than):
          
  
          if hasattr(greater_than, 'strftime'):
              greater_than = datetime_as_utc(greater_than).strftime('%Y-%m-%d %H:%M:%S')
          elif isinstance(greater_than, six.string_types):
              raise QueryTypeError('Expected value of type `int` or instance of `datetime`, not %s' % type(greater_than))
  
          return self._add_condition('>', greater_than, types=[int, str])
docs: Adds new `>` condition
  
          :param greater_than: str or datetime compatible object (naive UTC datetime or tz-aware datetime)
          :raise:
              - QueryTypeError: if `greater_than` is of an unexpected type