/** * Returns an array of short with all the fields that describe this gYear type. * <p> * Note:the time zone is not included. * * @return an array of short with all the fields that describe this Date type. */ public short[] getValues() { short[] result = new short[2]; result[0] = this.getCentury(); result[1] = this.getYear(); return result; } // getValues
/** * Returns an array of short with all the fields that describe * this gYear type. * <p>Note:the time zone is not included. * @return an array of short with all the fields that describe * this Date type. */ public short[] getValues() { short[] result = new short[2]; result[0] = this.getCentury(); result[1] = this.getYear(); return result; } //getValues
/** * convert this gYear to a string * The format is defined by W3C XML Schema recommendation and ISO8601 * i.e (+|-)CCYY-MM(Z|(+|-)hh:mm) * @return a string representing this Date */ public String toString() { StringBuffer result = new StringBuffer(); if (isNegative()) { result.append('-'); } if ((this.getCentury()/10) == 0) { result.append(0); } result.append(this.getCentury()); if ((this.getYear()/10) == 0) { result.append(0); } result.append(this.getYear()); appendTimeZoneString(result); return result.toString(); }//toString
/** * convert this gYear to a string The format is defined by W3C XML Schema recommendation and * ISO8601 i.e (+|-)CCYY-MM(Z|(+|-)hh:mm) * * @return a string representing this Date */ public String toString() { StringBuffer result = new StringBuffer(); if (isNegative()) { result.append('-'); } if ((this.getCentury() / 10) == 0) { result.append(0); } result.append(this.getCentury()); if ((this.getYear() / 10) == 0) { result.append(0); } result.append(this.getYear()); appendTimeZoneString(result); return result.toString(); }// toString
GYearTarget.setCentury(temp.getCentury()); GYearTarget.setYear(temp.getYear()); if (temp.isUTC()) {
GYearTarget.setCentury(temp.getCentury()); GYearTarget.setYear(temp.getYear()); if (temp.isUTC()) {