hour
Hours part of the input date and time.
Syntax
h = hour(t)
h = hour(t, formatIn)
Input argument
t - serial date number or text inputs
formatIn - valid date format
Output argument
h - a double: integer value.
Description
h = hour(t) extracts the hour component from each date and time specified in t.
The output h is a double array containing integer values ranging from 0 to 23.
Example
See also
History
Version
Description
1.10.0
initial version
Author
Allan CORNET
Last updated