I'm trying to convert UNIX (seconds from January 1, 1970) time to seconds from the beginning of the day.
I'm currently using this code, but I'd like seconds from the beginning of the day; I don't want a date string.
time_reference = datenum('1970', 'yyyy'); matrix(:,col.eTime) = time_reference + matrix(:,col.eTime) / 8.64e7; datestr(matrix(1,col.eTime), 'yyyymmdd HH:MM:SS.FFF')
Thanks, Lauren
Best Answer