Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

decrease hours in datetime python

from datetime import datetime, timedelta
d = datetime.today() - timedelta(hours=1, minutes=50)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #decrease #hours #datetime #python
ADD COMMENT
Topic
Name
2+8 =