Getting 9 digit datenum into a timestamp format of Date and time.

14 次查看(过去 30 天)
I have a number representing a date:
val = 1554579550.00000
I want to convert it to a timestamp (date + time) but can't figure out how, applying datestr(val) returns the following value:
datestr(val) = 29-Mar-6294
What's the proper way of handling these 9 digit number dates?
Thanks in advance!

采纳的回答

Walter Roberson
Walter Roberson 2019-4-6
datetime(val, 'convertfrom', 'posixtime')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

标签

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by