MATLAB: How to convert from decimal time to hh:mm:ss

ctime formatxlsread

I am using xlsread to read an excel spreadsheet. One of the values that it is reading is time. Inside the spreadsheet the time is in the correct format (hh:mm:ss), however the value that xlsread returns for the time is a decimal. Does anyone know how to convert this value to the hh:mm:ss format in either MATLAB or C++?
Thanks!

Best Answer

datestr(yournumber,'HH:MM:SS')