Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

yesterday in python

from datetime import datetime, timedelta
today = datetime.today()
yesterday = today - timedelta(days=1)
one_week_ago = today - timedelta(days=7)
thirty_days_ago = today - timedelta(days=30)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #yesterday #python
ADD COMMENT
Topic
Name
8+8 =