Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python convert 12 hour time to 24 hour

df['Time'] = pd.to_datetime(df['Time'], format='%I:%M:%S %p').dt.strftime('%H:%M:%S')
print (df)
       Time
1  17:21:26
2  17:21:58
3  17:22:22
4  17:22:36
5  19:18:16
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #convert #hour #time #hour
ADD COMMENT
Topic
Name
5+7 =