| Mapping Toolbox | Search  Help Desk |
| sec2hms, sec2hm | Examples See Also |
Convert time units from seconds to hms or hm
Syntax
timeout = sec2hms(timein) timeout = sec2hm(timein)
Description
timeout = sec2hms(timein) converts times input in seconds to the equivalent measure in the hours-minutes-seconds ("hms") format. timeout = sec2hm(timein) converts times input in seconds to the equivalent measure in the hours-minutes ("hm") format. This is the "hms" format, properly rounded to just hours and minutes.Example
sec2hms(3661)
ans =
101.01
sec2hm(3661)
ans =
101.00
See Also
hms2mat |
Convert from hms to separated matrix components |
mat2hms |
Convert from separated matrices input to hms |
sec2hmhr2sec |
Other direct time conversion functions |
timedim |
Convert times between different units |