Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

datetime time set seconds

from datetime import datetime
dt = datetime.strptime('26 Sep 2012', '%d %b %Y')
newdatetime = dt.replace(hour=11, minute=59, second=25)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #datetime #time #set #seconds
ADD COMMENT
Topic
Name
1+2 =