Can I find milliseconds from decimal time
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Joseph Tirado
il 14 Lug 2021
Commentato: Peter Perkins
il 27 Lug 2021
I have a bunch of times in decimal time and I am trying to format it in hours, minutes, seconds, and milliseconds. I know how to get in hh:mm:ss but I can't get milliseconds. Is this even possible and if so how can I do it? This is how i converted to hours, minutes and seconds.
HOD=decimaltime*24
HOD=hours(HOD)
HOD.Format='hh:mm:ss'
I need to find the difference between times so I need the answer to be in time format.
0 Commenti
Risposta accettata
Star Strider
il 14 Lug 2021
1 Commento
Peter Perkins
il 27 Lug 2021
It's worth saying that regardless of what display format
HOD=hours(HOD)
has, it's still the same value. The display format is only for ... well, display. I mean, that's important, but it only affects what you see.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical 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!