Work with days (1 day ago, 1 week ago, ..)

Loko Loko at caramail.com
Fri Dec 13 11:08:16 EST 2002


Hello there

I'm in urgent need of simulating the unix "date" command in python.

How can I simply get the same result than :

"date -v-1d"  (or date --date '1 day ago' under linux)

?

How can I get the day 1 week before, 1 month before, etc, without
managing 30 or 31 or 28 or 29 days months, etc ... ?

Kind Regards
Arnaud



More information about the Python-list mailing list