datetime.hour
datetime: h = hour (T)
Hour component of a datetime array.
h = hour (T) returns the hour number for each element
of the input datetime array T. The output h is a
double array containing integer values in the range
and it has the same size as T. Not-A-Time
(NaT) values in T are returned as NaN in the output
array.
Source Code: datetime