Examples of Date


Examples of org.exolab.castor.types.Date

            System.out.println();

            System.out.println();
            System.out.println("Shipping Date:");
            ShippingDate date = invoice.getShippingDate();
            Date day = date.getDate();
            Time time = date.getTime();

            System.out.println("   Date :" + day.toString());
            System.out.println("   Time :" + time.toString());
            System.out.println();

            System.out.println("----End of Invoice----");
            invoice.marshal(new FileWriter("invoice2.xml"));
View Full Code Here

Examples of org.gedcomx.conclusion.Date

        Fact gedxFact = new Fact();
        gedxFact.setKnownType(factType);

        if(factDate != null) {
          Date date = new Date();
          date.setOriginal(factDate);
          gedxFact.setDate(date);
        }

        if(factPlace != null) {
          PlaceReference place = new PlaceReference();
View Full Code Here

Examples of org.jquantlib.time.Date

        this.latestDate = swap.maturityDate();

        // ...but due to adjustments, the last floating coupon might need a later date for fixing
        if (new Settings().isUseIndexedCoupon()) {
            final FloatingRateCoupon lastFloating = (FloatingRateCoupon) swap.floatingLeg().last();
            final Date fixingValueDate = iborIndex.valueDate(lastFloating.fixingDate());
            final Date endValueDate = iborIndex.maturityDate(fixingValueDate);
            latestDate = Date.max(latestDate, endValueDate);
        }
    }
View Full Code Here

Examples of org.jquantlib.util.Date

            throw new NullPointerException();

        if (c == BusinessDayConvention.UNADJUSTED)
            return d;

        Date d1 = d;
        if (c == BusinessDayConvention.FOLLOWING || c == BusinessDayConvention.MODIFIED_FOLLOWING) {
            while (isHoliday(d1))
                d1.increment();
            if (c == BusinessDayConvention.MODIFIED_FOLLOWING) {
                if (d1.getMonth() != d.getMonth()) {
                    return adjust(d, BusinessDayConvention.PRECEDING);
                }
            }
        } else if (c == BusinessDayConvention.PRECEDING || c == BusinessDayConvention.MODIFIED_PRECEDING) {
            while (isHoliday(d1))
                d1.decrement();
            if (c == BusinessDayConvention.MODIFIED_PRECEDING && d1.getMonth() != d.getMonth()) {
                return adjust(d, BusinessDayConvention.FOLLOWING);
            }
        } else {
            throw new IllegalArgumentException("unknown business-day convention");
        }
View Full Code Here

Examples of org.stjs.javascript.Date

  private static final int CALL_METHOD_ARG_COUNT = 3;

  private static Object convertToDate(Object result) {
    Double time = (Double) invoke(result, "callMethod", CALL_METHOD_ARG_COUNT, result, "getTime", null);
    return new Date(time.longValue());
  }
View Full Code Here

Examples of pt.opensoft.util.Date

  }

  public abstract boolean contains (String holidayRegion, DateTime date);

  public Date getDate (int year) {
    return new Date(year, month, day);
  }
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.