Hour number
h = hour(
returns the hour numbers
of the datetime values in t
)t
. The h
output
is a double
array the same size as t
and
contains integer values from 0 to 23.
The hour
function returns the hour numbers of datetime
values. To assign hour values to a datetime array, t
, use
t.Hour
and modify the Hour
property.