[Newbie] How to make the difference beetween 2 dates... ?

Jerome Alet alet at unice.fr
Tue Nov 14 07:39:53 EST 2000


Christophe Prevost wrote:

> I have a month and a year and i want to know if this date is 2 months old
> from now
> In PHP it's quite simple : $TwoMonthAgo = MkTime(0, 0, 0, $Month-2, $Day,
> $Year);

I suggest you to download mxDateTime from
http://starship.python.net/~lemburg/

this will solve all your problems and possibly more ;-)

-- 
Jerome ALET - alet at unice.fr - http://cortex.unice.fr/~jerome
Fac de Medecine de Nice        http://wwwmed.unice.fr 
Tel: (+33) 4 93 37 76 30     Fax: (+33) 4 93 53 15 15
28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE



More information about the Python-list mailing list