Mapping Toolbox | ![]() ![]() |
Convert time units from hours to hms or hm
Syntax
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
See Also
hms2mat |
Convert from hms to separated matrix components |
sec2hr hr2hms |
Other direct time conversion functions |
mat2hms |
Convert from separated matrices to hms format |
timedim |
Convert time units |
![]() | hms2mat | hr2sec | ![]() |