Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add hours to date time in python


from datetime import datetime, timedelta

nine_hours_from_now = datetime.now() + timedelta(hours=9)
#datetime.datetime(2012, 12, 3, 23, 24, 31, 774118)

Source by nullorempty.org #
 
PREVIOUS NEXT
Tagged: #add #hours #date #time #python
ADD COMMENT
Topic
Name
3+5 =