MongoDb find collection document based on timestamp
问题 I have user profile data as: {u'DOB': None, u'_id': ObjectId('5906f3b.....'), u'active': 0, u'bfunc': 0, u'city': None, u'contact': u'', u'created': 1493627839, u'email': u'mymail@demo.c u'facebook_id': u'', u'fburl': None, u'firstname': u'', u'gender': None, u'group_id': None} I want to find all data between last 4 hrs based on created field. Current created value is 1493627839 which is 2017-05-01 14:07:19 I want to find lessthan current time and greaterthan last 4 hrs. How could i find