obspy.core.utcdatetime.UTCDateTime._set_hour

UTCDateTime._set_hour(value)[source]

Sets hours of current UTCDateTime object.

Parameters:value (int) Hours

Example

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