Calculate an age

Pierre Quentel quentel.pierre at wanadoo.fr
Thu Dec 6 16:34:57 EST 2007


Hi all,

I have searched in the standard distribution if there was a function
to return the difference between 2 dates expressed like an age :
number of years, of months and days. The difference between datetime
instances returns a timedelta object that gives a number of days, but
not an age

So is there such a function somewhere ? If not, for what reason, since
it's a rather usual task

Regards,
Pierre



More information about the Python-list mailing list