>> time = datestr(seconds(duration),'HH:MM:SS')time = '02:59:57'>> date_and_time = datetime(time, 'ConvertFrom', 'datenum', 'Format', 'dd.MM.yy HH:mm:SS') date_and_time = datetime 22.07.19 02:59:00
I would like to add current date to the 'time'. Why do I loose the 57 seconds when I do this transformation, and how to do it correctly?
Many thanks!
Best Answer