/** * Date Arithmetic function. * Adds the specified (signed) amount of time to the given time field, * based on the GregorianCalendar's rules. * no formating char's * * @param isoString * @param field * @param amount * @return ISO 8601 Date String * @throws ParseException */ public static final String add(String isoString, int field, int amount) throws ParseException { return add(isoString, field, amount, false); }
/** * Date Arithmetic function. * Adds the specified (signed) amount of time to the given time field, * based on the GregorianCalendar's rules. * no formating char's * * @param isoString * @param field * @param amount * @return ISO 8601 Date String * @throws ParseException */ public static final String add(String isoString, int field, int amount) throws ParseException { return add(isoString, field, amount, false); }