ExplodingCow / wod_day4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wod_day4

1)Fork this project. 2)Write the solution in your fav editor 3)Push the answer to your Github

Given a time in -hour AM/PM format, convert it to military (-hour) time.

Note: Midnight is on a -hour clock, and on a -hour clock. Noon is on a -hour clock, and on a -hour clock.

Input Format

A single string containing a time in -hour clock format (i.e.: or ), where 00 <= h <= 23 and 00 <= m <= 59.

Output Format

Convert and print the given time in -hour format, where .

Sample Input = Sample Output

07:05:45PM = 19:05:45 12:05:45AM = 00:05:45 12:05:45PM = 12:05:45

About


Languages

Language:JavaScript 85.2%Language:HTML 14.8%