Splitting time into hours : minutes : seconds from a fractional value.
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
WASIM ASHRAF
am 19 Apr. 2021
Kommentiert: WASIM ASHRAF
am 21 Apr. 2021
Hello Everyone,
Can anyone help me for converting a fractional value in the time format?
e.g. 15.76 = HH:MM:SS format.
Akzeptierte Antwort
Stephan
am 19 Apr. 2021
I guess 15.76 means hours in decimal numbers:
[h,m,s] = hms(hours(15.76))
d = duration(h,m,s)
gives:
h =
15
m =
45
s =
36
d =
duration
15:45:36
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Dates and Time finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!