I\'m trying to convert a date string into an age.
The string is like: \"Mon, 17 Nov 2008 01:45:32 +0200\" and I need to work out how many days old it is.
I h
In Python, datetime objects natively support subtraction:
datetime
from datetime import datetime age = datetime.now() - datetime.strptime(...) print age.days
The result is a timedelta object.