subtract date on supported date

@param d date to subtract
@return <code>this</code>
172778
public DateFuncSup subtract(DateSeperator d) {
                date.setTime(date.getTime() - d.parse());
                return this;
        }
567245
public static Date getNextDay(Date dt, Long n) {

        Calendar cal = new GregorianCalendar();
        cal.setTime(dt);

        return new GregorianCalendar(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH),
                                        cal.get(Calendar.DAY_OF_MONTH) + n.intValue()).getTime();

    }
505502
static public Date adjustDate(Date date)
  {
    long milliToAdjust = ResultUtil.msDiffJulianToGregorian(date);

    if (milliToAdjust != 0)
    {
      // add the difference to the new date
      return new Date(date.getTime() + milliToAdjust);
    }
    else
    {
      return date;
    }
  }
1074706
static Date toDate(double d) {
        GregorianCalendar ret = new GregorianCalendar(1899,11,30);
        int days = (int)d;
        d -= days;
        ret.add(Calendar.DATE,days);
        d *= 24;
        int hours = (int)d;
        ret.add(Calendar.HOUR,hours);
        d -= hours;
        d *= 60;
//        d += 0.5; // round
        int min = (int)d;
        ret.add(Calendar.MINUTE,min);

        d -= min;
        d *= 60;
        int secs = (int) d;
        ret.add(Calendar.SECOND, secs);

        return ret.getTime();
    }
504897
public PackedDecimal subtract(PackedDecimal operand) {
        if (this.isBruch() || operand.isBruch()) {
            return subtract(operand.toBruch());
        } else {
            return subtract(operand.toBigDecimal());
        }
    }
657155
def subtract_days(self, days: int) -> datetime:
        
        self.value = self.value - relativedelta(days=days)
        return self.value
384920
public static Date parseSecondsFromEpoch(Double d) {
        synchronized (MONITOR) {
            return new Date(SECONDS.toMillis(d.longValue()));
        }
    }
891942
public static Date substractMonthsFromDate(final Date date, final int substractMonths)
	{
		final Calendar dateOnCalendar = Calendar.getInstance();
		dateOnCalendar.setTime(date);
		dateOnCalendar.add(Calendar.MONTH, substractMonths * -1);
		return dateOnCalendar.getTime();
	}
644285
public static Date fromDate(final String dt) throws BadDateException {
    try {
      if (dt == null) {
        return null;
      }

      if (dt.indexOf("T") > 0) {
        return fromDateTime(dt);
      }

      if (!dt.contains("-")) {
        return fromISODate(dt);
      }

      return fromRfcDate(dt);
    } catch (Throwable t) {
      throw new BadDateException();
    }
  }
385660
public Date toDate(double x) {
        if (Double.isNaN(x)) {
            return null;
        }

        return new Date(Double.doubleToRawLongBits(x));
    }
54529
public D plus(int amount) {

        if (amount == 0) {
            return this.self();
        }

        long value = this.amount;
        return this.with(MathUtils.safeCast(value + amount));

    }
402099
function(d) {
    return d.wmEnd || (d.wmEnd = later.date.prev(
      later.Y.val(d),
      later.M.val(d),
      Math.min(later.D.val(d) + (7 - later.dw.val(d)), later.D.extent(d)[1])));
  }
1061393
function findOutNearestDate(x0, d0, d1){
            return (new Date(x0).getTime() - new Date(d0.date).getTime()) > (new Date(d1.date).getTime() - new Date(x0).getTime()) ? d0 : d1;
        }
1043005
public CalendarDays plus(CalendarDays other) {

        return CalendarDays.of(Math.addExact(this.days, other.days));

    }
205096
public Date adjustDate(final Date startDate, final int increment, final NonWorkingDayChecker<Date> checker) {
        final Calendar cal = Utils.getCal(startDate);

        while (checker.isNonWorkingDay(cal.getTime())) {
            if (increment < 0) {
                cal.add(Calendar.DAY_OF_MONTH, -1);
            } else {
                cal.add(Calendar.DAY_OF_MONTH, 1);
            }
        }

        return cal.getTime();
    }
209989
public static java.sql.Date plus(java.sql.Date self, int days) {
        return new java.sql.Date(plus((Date) self, days).getTime());
    }
687633
@Override
     public Calendar moveCurrentDate(final BaseCalculator<Calendar> calculator) {
         return adjustDate(calculator.getCurrentBusinessDate(), -1, calculator);
     }