+ 1

In Python how do I convert 12 hour time to 24 hour time?

1st Jul 2020, 6:39 PM
3.14
3.14 - avatar
3 odpowiedzi
+ 11
There are several possibilities to do this job. (1) using your own logic. search in web for http://militarytimechart.com/ . It's a table, where you can see how it works. Then implement this in your code (2) using datetime module from python. you can use format specifiers to achieve this.
1st Jul 2020, 7:09 PM
Lothar
Lothar - avatar
+ 4
Please don't ask code coach solution here. If you got stuck somewhere or you want help you have to show us to your attempt first. https://www.sololearn.com/discuss/1316935/?ref=app
1st Jul 2020, 6:58 PM
Arctic Fox
Arctic Fox - avatar
+ 2
Lothar perfect
1st Jul 2020, 7:13 PM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar