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
		goc3
    	on 6 Dec 2016
	
	
  	This problem's test suite has been fixed and expanded.
		Nikolaos Nikolaou
    	on 18 Apr 2022
	
	
  	there is still something wrong with the last test case
		Dyuman Joshi
    	on 18 Apr 2022
	
	
  	@Nikolaos, All test cases are working fine. Reference solution and other solutions provided say otherwise to your comment.
Solution Comments
Show commentsProblem Recent Solvers25
Suggested Problems
- 
         
         1445 Solvers 
- 
         
         1314 Solvers 
- 
         
         523 Solvers 
- 
         
         805 Solvers 
- 
         A Simple Tide Gauge with MATLAB 385 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!