<< etime | Time functions | leapyear >> |
h = hour(t) |
h = hour(t, formatIn) |
serial date number or text inputs
valid date format
a double: integer value.
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.
h = hour(738427.656845093)
h = hour("2021/09/28 15:45:51", 'YYYY/M/DD HH:MM:SS')
Version | Description |
---|---|
1.10.0 | initial version |
Allan CORNET