Calculate an age
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Tue Dec 11 02:59:22 EST 2007
More information about the Python-list mailing list
Tue Dec 11 02:59:22 EST 2007
- Previous message (by thread): Calculate an age
- Next message (by thread): Calculate an age
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
En Sat, 08 Dec 2007 14:37:13 -0300, Pierre Quentel <quentel.pierre at wanadoo.fr> escribió: > I understand that there is no possible conversion from a number of > days to a (X,Y,Z) tuple of (years,months,days), and the reverse. But > the difference between 2 dates can be unambiguously expressed as > (X,Y,Z), and given a start date and an interval (X,Y,Z) you can also > find the end date unambiguously, provided the arguments are valid (for > instance, 1 month after the 30th of January is not valid) As a side note, the "legal date reckoning" in Argentina considers that case too: 1 month after the 30th of January is Feb 28 (or 29 on leap years); 1 month after March 31 is April 30. -- Gabriel Genellina
- Previous message (by thread): Calculate an age
- Next message (by thread): Calculate an age
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list