obspy.core.utcdatetime.UTCDateTime._set_year

UTCDateTime._set_year(value)[source]

Sets year of current UTCDateTime object.

Parameters:value (int) Year

Example

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