is there any way to convert milliseconds to hh:mm:ss.FFF.

38 ビュー (過去 30 日間)
Megha
Megha 2018 年 12 月 21 日
編集済み: DGM 2023 年 3 月 14 日
is there any way to convert milliseconds to hh:mm:ss.FFF.
Like, 60,000 milliseconds is hh:mm:ss.SSSS 00:00:60.000
I would like to rephrase it,
MilliSeconds is in uint32 class. I would like to convert this time to hh:mm:ss.FFF format

回答 (2 件)

Stephen23
Stephen23 2023 年 3 月 13 日
編集済み: Stephen23 2023 年 3 月 13 日
N = uint32(65432)
N = uint32 65432
D = milliseconds(N);
D.Format = 'hh:mm:ss.SSS'
D = duration
00:01:05.432

ES
ES 2018 年 12 月 21 日
編集済み: DGM 2023 年 3 月 14 日
  1 件のコメント
Megha
Megha 2018 年 12 月 21 日
Thank you for your efforts ES.
I am sorry to say, this is not what I am looking for.
Time is in milliseconds and i want only hh:mm:ss.FFF
of the day.

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

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by