Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to convert a am pm string to 24 hrs time python

>>> from datetime import *
>>> m2 = '1:35 PM'
>>> m2 = datetime.strptime(m2, '%I:%M %p')
>>> print(m2)
1900-01-01 13:35:00
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #pm #string #hrs #time #python
ADD COMMENT
Topic
Name
3+4 =