Hello all,
I am trying to sum datenum values, and return them to hours:mins:secs format when all complete. When the amount of time is relatively small, it works as expected, but once it rolls past 24 hours, it resets.
Example:
a = datenum('21:10:00','hh:MM:ss')b = datenum('1:10:00','hh:MM:ss')c = datestr(x+y,'hh:MM:ss')c = '22:20:00'x = datenum('21:10:00','hh:MM:ss')y = datenum('7:10:00','hh:MM:ss')z = datestr(x+y,'hh:MM:ss')z = '04:20:00'
Anyone know how to get around that to output :
z = '28:10:00'
and also 3 digit hours if need-be.
Any help is greatly appreciated!
Best Answer