if (zoneStr.length() != 6) throw new ParseException(str + ": Bad time zone format", 20); result.setZone(Short.parseShort(zoneStr.substring(1, 3)), Short.parseShort(zoneStr.substring(4, 6))); } else
this.setMinute(values[5]); this.setSecond(values[6], values[7]); this.setZone(values[8], values[9]);
if (zoneStr.length()!= 6) throw new ParseException(str+": Bad time zone format",20); result.setZone(Short.parseShort(zoneStr.substring(1,3)), Short.parseShort(zoneStr.substring(4,6)));
this.setMinute(values[5]); this.setSecond(values[6],values[7]); this.setZone(values[8],values[9]);
recurTarget.setMinute(temp.getMinute()); recurTarget.setSecond(temp.getSeconds(), temp.getMilli()); recurTarget.setZone(temp.getZoneHour(),temp.getZoneMinute()); recurTarget.isUTC(); } catch (Exception ex) {
/** * 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