As seen in a random Reddit comment:
def yesterdays_date():
yesterday = time.localtime()
time.sleep(86400)
return yesterday
An awesome function
-
Topics:
- proglang
To reply to the article, enter your email address. A copy of the article will be sent to you via email.