convert 24 hour time to 12 hour time
Input: '13:12'
Output: '01:12 PM'
Input: '06:12'
Output: '06:12 AM'
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers14
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
6819 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2581 Solvers
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1328 Solvers
-
Back to basics 21 - Matrix replicating
1819 Solvers
-
Return the first and last characters of a character array
12311 Solvers
More from this Author4
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!