Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python datetime add one week

import datetime

u = datetime.datetime.strptime("2011-01-01","%Y-%m-%d")
d = datetime.timedelta(days=7)
t = u + d
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #datetime #add #week
ADD COMMENT
Topic
Name
3+8 =