Interval.months

Int

The "years/months" value for this interval expressed in months. This attribute has value only when the interval has been created specifically indicating months or years. Otherwise, its value is 0. For example, if the interval is created indicating the value: 20Y1M45d or 241M45d, the "months" value is: "241".