フィルターのクリア

conversion of hexadecimal timestamps

10 ビュー (過去 30 日間)
peter
peter 2016 年 8 月 2 日
コメント済み: peter 2016 年 8 月 2 日
I have dates and times as hexadecimal timestamps. I want to convert them into date vectors or the like. Is there a way to do this in Matlab?

採用された回答

Stephen23
Stephen23 2016 年 8 月 2 日
編集済み: Stephen23 2016 年 8 月 2 日
>> datevec(hex2dec('577aaa0e')/86400 + datenum(1970,1,1))
ans =
2016 7 4 18 25 18
The HEX date likely encodes a UNIX timestamp, if so the above conversion will convert this into a MATLAB datevec.

その他の回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 8 月 2 日
編集済み: Azzi Abdelmalek 2016 年 8 月 2 日
use hex2dec command
a='10'
b=hex2dec(a)
  3 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 8 月 2 日
How your hexadecimal number is related to your date?
peter
peter 2016 年 8 月 2 日
the hexadecimal timestamp is generated automatically, presumably it is a unix feature.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDates and Time についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by