In article <ma*************************************@python.or g>,
"David Mostert" <je******@yahoo.com> wrote:
I'm a Newbie.
Is there a method in Python to display yesterday's date?
ie: Yesterday = Today - 1day
import time
yesternow = time.time() - 24 * 60 * 60.0
print time.ctime (yesternow)
Does a little more than you want.
Regards. Mel.