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
Problem Comments
-
3 Comments
This problem's test suite has been fixed and expanded.
there is still something wrong with the last test case
@Nikolaos, All test cases are working fine. Reference solution and other solutions provided say otherwise to your comment.
Solution Comments
Show commentsProblem Recent Solvers22
Suggested Problems
-
Check to see if a Sudoku Puzzle is Solved
315 Solvers
-
Least common multiple of many numbers
225 Solvers
-
Is my wife right? Now with even more wrong husband
1312 Solvers
-
Back to basics 23 - Triangular matrix
955 Solvers
-
Write a function man that takes a row vector v and returns a matrix H as follows..
593 Solvers
More from this Author14
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!