Package org.jquantlib.util

Examples of org.jquantlib.util.Month


        \ingroup calendars
    */ 
  public boolean isBusinessDay(final Date date /* @ReadOnly */) /* @ReadOnly */{
    Weekday w = date.getWeekday();
    int d = date.getDayOfMonth(), dd = date.getDayOfYear();
    Month m = date.getMonthEnum();
    int y = date.getYear();
    int em = easterMonday(y);
    if (isWeekend(w)
    // Easter Monday
        || (dd == em)
View Full Code Here


          return w == THURSDAY || w == FRIDAY;
      }
    public boolean isBusinessDay(Date date) {
      Weekday w = date.getWeekday();
      int d = date.getDayOfMonth(), dd = date.getDayOfYear();
      Month m = date.getMonthEnum();
      int y = date.getYear();
       
      if (isWeekend(w)
            // National Day
            || (d == 23 && m == SEPTEMBER)
View Full Code Here

}
final class SingaporeSettlementCalendar extends WesternCalendar {
  public boolean isBusinessDay(Date date) {
        Weekday w = date.getWeekday();
        int d = date.getDayOfMonth(), dd = date.getDayOfYear();
        Month m = date.getMonthEnum();
        int y = date.getYear();
        int em = easterMonday(y);

        if (isWeekend(w)
            // New Year's Day
View Full Code Here

        if (d<15 || d>21)
            return false;

        if (!mainCycle) return true;

        Month m = date.getMonthEnum();
        return (m==Month.MARCH || m==Month.JUNE || m==Month.SEPTEMBER || m==Month.DECEMBER);
    }
View Full Code Here

        } else {
          referenceDate = refDate;
        }

        char code = immCode.charAt(0);
        Month m = Month.valueOf(code);
       
        int y = immCode.charAt(1) - '0';

        /* year<1900 are not valid QuantLib years: to avoid a run-time
           exception few lines below we need to add 10 years right away */
 
View Full Code Here

TOP

Related Classes of org.jquantlib.util.Month

Copyright © 2018 www.massapicom. 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.