obspy.core.utcdatetime.UTCDateTime._get_hour

UTCDateTime._get_hour()[source]

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