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

21 ビュー (過去 30 日間)
Ajpaezm
Ajpaezm 2019 年 4 月 6 日
回答済み: Walter Roberson 2019 年 4 月 6 日
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 Center および File ExchangeDates and Time についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by