I have a model with a field name 'timestamp' that is a datetime field, and when I print them in python manage.py shell I get:
>>> a.timestamp
datetime.datetime(2013, 7, 15, 18, 45, tzinfo=<UTC>)
Now.... I am running django celery task every 30 seconds that suppose to retrieve all the matching objects in the last 30 seconds.
how can I do it (thing = MyModelName.objects.filter(.. something ..)
I hope that I manage to explain my self.
Thank you all in advanced.
Update: When I am typing in my server (python shell)
datetime.datetime.now() I am getting
datetime.datetime(2013, 7, 15, 20, 34, 4, 366166)