FUNCTION REFERENCE
hour
Hour of each datetime (0 to 23).
Hour of each datetime (0 to 23).
Syntax
h = hour(t)Example
h = hour(datetime(2024, 1, 1, 18, 30, 0)) % 18Differences from MATLAB: None known.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.