Retired
What time is it? (retired)
738 of 1,666northms
Description:
Given a time in AM/PM format as a string, convert it to 24-hour military time time as a string.
Midnight is 12:00:00AM
on a 12-hour clock, and 00:00:00
on a 24-hour clock. Noon is 12:00:00PM
on a 12-hour clock, and 12:00:00
on a 24-hour clock
Try not to use built-in Date/Time libraries.
Examples
"07:05:45PM" --> "19:05:45"
"12:00:01AM" --> "00:00:01"
"11:46:47PM" --> "23:46:47"
Date Time
Fundamentals
Similar Kata:
Stats:
Created | Jun 28, 2016 |
Warriors Trained | 3352 |
Total Skips | 58 |
Total Code Submissions | 10754 |
Total Times Completed | 1666 |
JavaScript Completions | 769 |
C# Completions | 194 |
Python Completions | 738 |
Ruby Completions | 7 |
Total Stars | 50 |
% of votes with a positive feedback rating | 89% of 304 |
Total "Very Satisfied" Votes | 243 |
Total "Somewhat Satisfied" Votes | 53 |
Total "Not Satisfied" Votes | 8 |
Total Rank Assessments | 8 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |