protected void appendDateString(StringBuffer result) { 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()); result.append('-'); 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()); }
protected void appendDateString(StringBuffer result) { 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()); result.append('-'); 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()); }
field1 = date1.getCentury(); field2 = date2.getCentury(); if (field1 < field2) { return LESS_THAN;
field1 = date1.getCentury(); field2 = date2.getCentury(); if (field1 < field2) { return LESS_THAN;
temp = _month + carry; this.setMonth((short) (modulo(temp - 1, 12) + 1)); temp = this.getCentury() * 100 + this.getYear() + fQuotient(temp - 1, 12); this.setCentury((short) (temp / 100)); this.setYear((short) (temp % 100));
temp = _month + carry; this.setMonth((short)(modulo(temp - 1, 12) + 1)); temp = this.getCentury() * 100 + this.getYear() + fQuotient(temp - 1, 12); this.setCentury((short) (temp / 100)); this.setYear((short) (temp % 100));