Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to rewrite minute in datetime python

from datetime import datetime
date = datetime.strptime('26 Sep 2012', '%d %b %Y')
newdate = date.replace(hour=11, minute=59)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rewrite #minute #datetime #python
ADD COMMENT
Topic
Name
4+2 =