obspy.core.utcdatetime.UTCDateTime.hour

property UTCDateTime.hour

Returns hour as an integer.

Return type:

int

Returns:

Returns hour as an integer.

Example

>>> dt = UTCDateTime(2012, 2, 11, 10, 11, 12)
>>> dt.hour
10