Hour, minute, and second numbers of duration
[h,m,s] = hms(t)
[
returns the hour, minute, and second values of the datetime values inh
,m
,s
] = hms(t
)t
as separate numeric arrays. Theh
andm
outputs contain integer values, and thes
output can contain a fractional part.h
,m
, ands
are the same size ast
.
Callinghms
is equivalent to calling thehour
,minute
, andsecond
functions.