I want to calculate the age of a person given the date of birth and the current date in years, months and days relative to the current date.
For example:
<
from dateutil.relativedelta import *
from datetime import date
def calc_age(dob):
today = date.today()
age = relativedelta(today, dob)
print str(age.years)+" Years, "+str(age.months)+" Months,"+str(age.days)+" Days"
#test it
calc_age(date(1993,10,10))