MATLAB: How to convert 5.5 hour to 05:30:00 HH:MM:SS format

convertformathh:mm:sstime

how to convert 5.5 hour to 05:30:00 HH:MM:SS format?

Best Answer

>> datestr(5.5/24,'HH:MM:SS')
ans = 05:30:00