convert exp number to datetime
2 次查看(过去 30 天)
显示 更早的评论
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'
采纳的回答
Stephen23
2022-10-18
N = 2.022051711034598e+16;
S = string(uint64(N))
D = datetime(S, 'inputFormat','uuuuMMddHHmmssSSS', 'Format','yyyy-MM-dd HH:mm:ss.SSS')
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!