date time arithmatic

Dave Pawson dpawson at nearlynildram.co.uk
Wed Jan 15 08:01:42 CET 2003


Michael Hudson <mwh at python.net> wrote in 
news:7h3znq3rduv.fsf at pc150.maths.bris.ac.uk:

> Dave Pawson <dpawson at nearlynildram.co.uk> writes:
> 
>> Put simply I would like to determine the number of 
>> days between now() and some date in the past.
>> 
>> E.g. now() - someCall(2002,9,2,0,0) = 126 days
>> 
>> This seems possible in 2.3 alpha, but not in 2.2 (readily).
>> 
>> Looking for pointers please?
> 
> You could steal the python datetime module from the Python CVS
> sandbox.
> 

Thanks. I'll take a look.

regards DaveP




More information about the Python-list mailing list