Get yesterday's date
Wojtek Walczak
gminick at hacker.pl
Wed Nov 27 10:42:15 EST 2002
Dnia Wed, 27 Nov 2002 08:32:21 -0600, Jeff Bauer napisał(a):
> >>> from normalDate import ND
> >>> today = ND()
> >>> yesterday = today - 1
> >>> yesterday
> 20021126
> >>>
What with the first day of the month ?
Eg. Let's say it's 1 of December. Now let's substract one day from it.
Is it 20021200 or 20021130 ?
--
[ ] gminick (at) underground.org.pl http://gminick.linuxsecurity.pl/ [ ]
[ "Po prostu lubie poranna samotnosc, bo wtedy kawa smakuje najlepiej." ]
More information about the Python-list
mailing list