Seconds - MATLAB Cody - MATLAB Central

Problem 45398. Seconds

Difficulty:Rate

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
Registration Now Open for MathWorks AUTOMOTIVE CONFERENCE 2025
...
Hello Community, We're excited to announce that registration is now open for the...

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!
Go to top of page