how get date fromthe long number?
1 次查看(过去 30 天)
显示 更早的评论
Hi,
The following number represent date
1246573330
How get a date from it ? where I tried datenum,datestr, and datevec, but does not working
Thanks
2 个评论
采纳的回答
Star Strider
2022-8-23
移动:Steven Lord
2022-8-23
D = 1246573330;
DT1 = datetime(D, 'ConvertFrom','datenum')
DT2 = datetime(D, 'ConvertFrom','excel')
DT3 = datetime(D, 'ConvertFrom','posixtime')
DT4 = datetime(D, 'ConvertFrom','juliandate')
.
10 个评论
更多回答(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!