code: private int getFieldValueAsInt(final DatatypeConstants.Field field) {
          Number n = getField(field);
          if (n != null) {
              return n.intValue();
          }
          return 0;
      }
docs: Gets the value of a field as an <code>int</code>.
  
  @param field
  one of the six Field constants (YEARS,MONTHS,DAYS,HOURS,
  MINUTES, or SECONDS.)
  @return
  If the field is present, return its value as an <code>int</code>,
  else return <code>0</code>.