Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python datetime offset

>>> import datetime
>>> t = datetime.datetime.now()
>>> t - datetime.timedelta(hours=1, minutes=10)
datetime.datetime(2012, 12, 26, 17, 18, 52, 167840)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #datetime #offset
ADD COMMENT
Topic
Name
5+5 =