/** * Returns an array of short with all the fields that describe * this gMonthDay 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.getMonth(); result[1] = this.getDay(); return result; } //getValues
/** * Returns an array of short with all the fields that describe this gMonthDay 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.getMonth(); result[1] = this.getDay(); return result; } // getValues
/** * convert this gMonthDay to a string The format is defined by W3C XML Schema recommendation and * ISO8601 i.e --MM-DD(Z|(+|-)hh:mm) * * @return a string representing this Date */ public String toString() { StringBuffer result = new StringBuffer("--"); if ((this.getMonth() / 10) == 0) { result.append(0); } result.append(this.getMonth()); result.append("-"); if ((this.getDay() / 10) == 0) { result.append(0); } result.append(this.getDay()); appendTimeZoneString(result); return result.toString(); } // toString
/** * convert this gMonthDay to a string * The format is defined by W3C XML Schema recommendation and ISO8601 * i.e --MM-DD(Z|(+|-)hh:mm) * @return a string representing this Date */ public String toString() { StringBuffer result = new StringBuffer("--"); if ((this.getMonth()/10) == 0) { result.append(0); } result.append(this.getMonth()); result.append("-"); if ((this.getDay()/10) == 0) { result.append(0); } result.append(this.getDay()); appendTimeZoneString(result); return result.toString(); } //toString
GMonthDay temp = GMonthDay.parseGMonthDay(value.toString()); gMonthDayTarget.setMonth(temp.getMonth()); gMonthDayTarget.setDay(temp.getDay()); if (temp.isUTC()) { gMonthDayTarget.setUTC();
GMonthDay temp = GMonthDay.parseGMonthDay(value.toString()) ; gMonthDayTarget.setMonth(temp.getMonth()); gMonthDayTarget.setDay(temp.getDay()); if (temp.isUTC()) { gMonthDayTarget.setUTC();