this.setCentury(values[0]); this.setYear(values[1]); this.setMonth(values[2]); this.setDay(values[3]); this.setHour(values[4]);
this.setMonth(values[2]); this.setDay(values[3]); this.setHour(values[4]);
recurTarget.setCentury(temp.getCentury()); recurTarget.setYear(temp.getYear()); recurTarget.setMonth(temp.getMonth()); recurTarget.setDay(temp.getDay()); recurTarget.setHour(temp.getHour());
/** * Sets the value of the field associated with this descriptor. * * @param target the object in which to set the value * @param value the value of the field */ public void setValue(Object target, Object value) throws java.lang.IllegalStateException { if (!(target instanceof RecurringDuration)) { // -- throw exception } RecurringDuration recurTarget = (RecurringDuration) target; if (value == null) { /// do something } // -- update current instance of time with new time try { RecurringDuration temp = RecurringDuration.parseRecurringDuration(value.toString()); recurTarget.setCentury(temp.getCentury()); recurTarget.setYear(temp.getYear()); recurTarget.setMonth(temp.getMonth()); recurTarget.setDay(temp.getDay()); recurTarget.setHour(temp.getHour()); recurTarget.setMinute(temp.getMinute()); recurTarget.setSecond(temp.getSeconds(), temp.getMilli()); recurTarget.setZone(temp.getZoneHour(), temp.getZoneMinute()); recurTarget.isUTC(); } catch (Exception ex) { // -- ignore for now } } // -- setValue