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

36 visualizzazioni (ultimi 30 giorni)
Megha
Megha il 21 Dic 2018
Modificato: DGM il 14 Mar 2023
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

Risposte (2)

Stephen23
Stephen23 il 13 Mar 2023
Modificato: Stephen23 il 13 Mar 2023
N = uint32(65432)
N = uint32 65432
D = milliseconds(N);
D.Format = 'hh:mm:ss.SSS'
D = duration
00:01:05.432

ES
ES il 21 Dic 2018
Modificato: DGM il 14 Mar 2023
  1 Commento
Megha
Megha il 21 Dic 2018
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.

Accedi per commentare.

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by