#python

Published: 17 April 2022
on channel: Code Analysis
1,302
42

Python program to convert time from 12 hour to 24 hour format
Given a time in 12-hour AM/PM format, convert it to military (24-hour) time.

Note : Midnight is 12:00:00 AM on a 12-hour clock and 00:00:00 on a 24-hour clock. Noon is 12:00:00 PM on 12-hour clock and 12:00:00 on 24-hour clock.

Examples :

Input : 10:18:28 PM
Output : 22:18:28

Input : 12:12:48 AM
Output : 00:12:48

#shorts #coding #python
#python_coding #python_programming


On this page of the site you can watch the video online #python with a duration of hours minute second in good quality, which was uploaded by the user Code Analysis 17 April 2022, share the link with friends and acquaintances, this video has already been watched 1,302 times on youtube and it was liked by 42 viewers. Enjoy your viewing!