Examples of toTotalMonths()


Examples of org.threeten.bp.Period.toTotalMonths()

    return ((int) Math.ceil(expiry)) + "Y";
  }

  private static double getTime(final Tenor tenor) { //TODO this should be moved into a utils class
    final Period period = tenor.getPeriod();
    final double months = period.toTotalMonths();
    return months / 12.;
  }
}
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.