Cody

Problem 43612. time of day

Created by Marc Jakobi in Community

Calculate the time of day in days, hours, minutes or seconds passed since the beginning of the day, depending on the unit. The unit is given as a string:

validUnits = {'nanoseconds'; 'microseconds'; 'milliseconds'; ...
'seconds'; 'minutes'; 'hours'; 'days'};

Solution Stats

47.83% Correct | 52.17% Incorrect
Last solution submitted on Feb 17, 2019

Problem Comments

Recent Solvers9

Suggested Problems

More from this Author16

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!