Package org.threeten.bp

Examples of org.threeten.bp.LocalDate.minusYears()


    if (!TESTED_PREFIX_SET.contains(futurePrefix)) {
      LOG.debug("We recommended that you ask QR to test behaviour of IRFutureOption Volatility Surface's Expiries for prefix {}", futurePrefix);
      // The reason being that we have hard coded the behaviour of 6 consecutive months, then quarterly thereafter..
    }
    final LocalDate expiry  = FutureOptionUtils.getApproximateIRFutureOptionWithSerialOptionsExpiry(nthFuture, curveDate);
    return getMonthYearCode(expiry, expiry.minusYears(10));
  }

  /**
   * Produces the month-year string required to build ExternalId for Bloomberg ticker of Soybean Future Options,
   * which have a different set of expiry months
View Full Code Here


    String dataField = request.getDataField();
    if (endDate == null) {
      endDate = DateUtils.previousWeekDay();
    }
    if (startDate == null) {
      startDate = endDate.minusYears(1);
    }
    checkValidDateRange(startDate, endDate);
   
    Set<ExternalId> missingIdentifiers = Sets.newHashSet();
    for (ExternalId identifier : externalIds) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.