| Mapping Toolbox | Search  Help Desk |
| hr2hms, hr2hm | Examples See Also |
Convert time units from hours to hms or hm
Syntax
timeout = hr2hms(timein) timeout = hr2hm(timein)
Description
timeout = hr2hms(timein) converts times input in hours to the equivalent measure in the hours-minutes-seconds (hms) format. timeout = hr2hm(timein) converts times input in hours to the equivalent measure in the hours-minutes (hm) format. This is the hms format, properly rounded to just hours and minutes.Example
hr2hms(12.51)
ans =
1230.36
hr2hm(12.51)
ans =
1231.00
See Also
hms2mat |
Convert from hms to separated matrix components |
sec2hrhr2hms |
Other direct time conversion functions |
mat2hms |
Convert from separated matrices to hms format |
timedim |
Convert time units |