Cody

Problem 43612. time of day

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

50.0% Correct | 50.0% Incorrect
Last Solution submitted on Nov 25, 2019

Problem Comments