obspy.core.utcdatetime.UTCDateTime._get_year

UTCDateTime._get_year()[source]

Returns year of the current UTCDateTime object.

Return type:int
Returns:Returns year as an integer.

Example

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