How can I convert the serial date numbers in a text file to calendar dates

1 次查看(过去 30 天)
I have written a code to extract the x and y data from a plot
but the x data comes out as a serial date number and time and i'd like it in calendar months and time
  4 个评论

请先登录,再进行评论。

回答(1 个)

Star Strider
Star Strider 2021-7-21
It appears to be a MATLAB date number, and if so, maps to 1 Jan 1979 10:00:00
DT = datetime(722816.416666667, 'ConvertFrom','datenum')
DT = datetime
01-Jan-1979 10:00:00
.

类别

Help CenterFile Exchange 中查找有关 Dates and Time 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by