date time arithmatic

Michael Hudson mwh at python.net
Tue Jan 14 09:42:59 EST 2003


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.

Cheers,
M.

-- 
  I have gathered a posie of other men's flowers, and nothing but
  the thread that binds them is my own.                   -- Montaigne




More information about the Python-list mailing list