MATLAB Answers

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

25 views (last 30 days)
Megha Pandya
Megha Pandya on 21 Dec 2018
Commented: Megha Pandya on 21 Dec 2018
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

  0 Comments

Sign in to comment.

Answers (1)

ES
ES on 21 Dec 2018
datetime(60000,'convertfrom','posixtime')
https://in.mathworks.com/matlabcentral/answers/402079-how-to-convert-milliseconds-to-dd-mm-yyyy-hh-mm-ss

  1 Comment

Megha Pandya
Megha Pandya on 21 Dec 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.

Sign in to comment.

Sign in to answer this question.