DATE ARITHMETIC

Tim Peters tim_one at email.msn.com
Fri Jun 18 20:01:32 EDT 1999


[Ajith Prasad]
> I need to do some simple date arithmetic - finding the number of days
> between any 2 days, the age of a person on a day given his birthday. The
> mxDateTime module downloadable from the Python website is more
> complex than what I need. Any other suggestions?

Demo/classes/Dates.py, in the std source distribution (the binary Windows
distribution doesn't contain the Demo directory -- you need the source
distribution).  Supplies a very simple date class, that will work for at
least the next trillion years <wink>.

i-laugh-at-y2k-ly y'rs  - tim






More information about the Python-list mailing list