Gets the value of the specified field from this month-of-year as a {@code long}.
!(p)
This queries this month for the value of the specified field.
If it is not possible to return the value, because the field is not supported
or for some other reason, an exception is thrown.
!(p)
If the field is {@link ChronoField#MONTH_OF_YEAR MONTH_OF_YEAR} then the
value of the month-of-year, from 1 to 12, will be returned.
All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}.
!(p)
If the field is not a {@code ChronoField}, then the result of this method
is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)}
passing {@code this} as the argument. Whether the value can be obtained,
and what the value represents, is determined by the field.
@param field the field to get, not null
@return the value for the field
@throws DateTimeException if a value for the field cannot be obtained
@throws UnsupportedTemporalTypeException if the field is not supported
@throws ArithmeticException if numeric overflow occurs
Gets the value of the specified field from this month-of-year as a {@code long}. !(p) This queries this month for the value of the specified field. If it is not possible to return the value, because the field is not supported or for some other reason, an exception is thrown. !(p) If the field is {@link ChronoField#MONTH_OF_YEAR MONTH_OF_YEAR} then the value of the month-of-year, from 1 to 12, will be returned. All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. !(p) If the field is not a {@code ChronoField}, then the result of this method is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} passing {@code this} as the argument. Whether the value can be obtained, and what the value represents, is determined by the field.
@param field the field to get, not null @return the value for the field @throws DateTimeException if a value for the field cannot be obtained @throws UnsupportedTemporalTypeException if the field is not supported @throws ArithmeticException if numeric overflow occurs