hour_ago = datetime.datetime.now() - datetime.timedelta(hours=1)
fetched = MyModel.query().filter(MyModel.timestamp < hour_ago).fetch(None,
    keys_only=True)
Как протестировать DateTimeProperty в App Engine NDB?