obspy.core.utcdatetime.UTCDateTime.year

property UTCDateTime.year

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