Problem 45398. Seconds

Given the number of seconds after 12 am, find the time in the given format (12/24).

If the format is not mentioned, use 24-hour format.

For example,

 sec = 120s
 output = '12:02:00:000 AM' 

Solution Stats

11.03% Correct | 88.97% Incorrect
Last Solution submitted on Sep 07, 2023

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers13

Suggested Problems

More from this Author165

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!