Mapping Toolbox Previous page   Next Page
hms2hm

Round from hms format to hm format

Syntax

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


Previous page  histr hms2hr, hms2sec Next page

Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS