Mapping Toolbox | ![]() ![]() |
Round from hms format to hm format
Syntax
Description
timeout = hms2hm(timein) rounds times input in hours-minutes-seconds (hms) format to the appropriate value in hours-minutes (hm) format. This special handling is needed because there are 60, not 100, seconds in a minute.
Example
Round 12:34:29 and 12:34:31 to hm format:
See Also
hms2hr sec2hr |
Other direct time conversion functions |
hms2mat |
Convert from hms to separated matrix components |
mat2hms |
Convert from separated matrices to hms format |
timedim |
Convert time units |
![]() | histr | hms2hr, hms2sec | ![]() |