convert exp number to datetime
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, I have this number that I would like to convert into datetime.. I am not sure about which function to use and how.. any suggestion ?
% input
2.022051711034598e+16
% desired output
'2022-05-17 11:03:45.980'
Akzeptierte Antwort
Stephen23
am 18 Okt. 2022
N = 2.022051711034598e+16;
S = string(uint64(N))
D = datetime(S, 'inputFormat','uuuuMMddHHmmssSSS', 'Format','yyyy-MM-dd HH:mm:ss.SSS')
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Dates and Time finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!