obspy.core.utcdatetime.UTCDateTime.month

property UTCDateTime.month

Returns month as an integer (January is 1, December is 12).

Return type

int

Returns

Returns month as an integer, where January is 1 and December is 12.

Example

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