returns the months in this duration as an int , or 0 if not present . concode_field_sep PlaceHolder placeHolder concode_field_sep Duration add concode_elem_sep Duration normalizeWith concode_elem_sep int compare concode_elem_sep boolean isSet concode_elem_sep Duration subtract concode_elem_sep long getTimeInMillis concode_elem_sep long getTimeInMillis concode_elem_sep Number getField concode_elem_sep boolean isLongerThan concode_elem_sep QName getXMLSchemaType concode_elem_sep int getMinutes concode_elem_sep int getHours concode_elem_sep int getDays concode_elem_sep int getSeconds concode_elem_sep boolean isShorterThan concode_elem_sep int getSign concode_elem_sep int getYears concode_elem_sep Duration negate concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep void addTo concode_elem_sep void addTo concode_elem_sep String toString concode_elem_sep Duration multiply concode_elem_sep Duration multiply
int function ( ) { Number loc0 = getField ( DatatypeConstants . MONTHS ) ; return ( loc0 == null ) ? 0 : loc0 . intValue ( ) ; }