I have the following with me
>>> import datetime
>>>
>>> some_date = datetime.datetime.strptime('2017-07-03T20:35:45.000Z', '%Y-%m-%dT%H:%M:%S.%fZ')
>>> some_date
datetime.datetime(2017, 7, 3, 20, 35, 45)
>>> datetime.datetime.now()
datetime.datetime(2017, 8, 21, 22, 4, 20, 215391)
>>>
I wanted to find out whether some_date
is N days older than today or not? Like lets' take N as 2. Then I wanted to find whether some_date came two days ago or not. How should I subtract both? Would this work? https://stackoverflow.com/a/441152/3834059