Mapping Toolbox    
sec2hms, sec2hm

Convert time units from seconds to hms or hm

Syntax

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

See Also
hms2mat
Convert from hms to separated matrix components
mat2hms
Convert from separated matrices input to hms
sec2hm
hr2sec
Other direct time conversion functions
timedim
Convert times between different units


  scxsc sec2hr