MATLAB: Convert seconds to time

MATLABtimetime conversion

Hi Team,
I have an array of numbers, which represents the number of seconds from 12am. Is there any way that I could convert seconds into time.
For example; 28225.6 is the number format I have, which is represents 28225.6 seconds after 12am. That is 7:50:25 AM in time.
Thank you

Best Answer

datestr(seconds(28225.6),'HH:MM:SS PM')