obspy.core.utcdatetime.UTCDateTime._get_month

UTCDateTime._get_month()[source]

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