obspy.core.utcdatetime.UTCDateTime._set_second

UTCDateTime._set_second(value)[source]

Sets seconds of current UTCDateTime object.

Parameters:value (int) Seconds

Example

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