Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

plus time in datetime python

# Option 01
my_time = datetime.datetime.strptime('07/05/15', '%m/%d/%y')
my_time = my_time.replace(hour=23, minute=59)
# OPtion 02
my_time = datetime.datetime.strptime('07/05/15', '%m/%d/%y')
my_time += datetime.timedelta(hours=23, minutes=59)

bilalahmed-dev.azeemlab.com
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #time #datetime #python
ADD COMMENT
Topic
Name
6+3 =