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 CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by