Examples of Date


Examples of ariba.util.core.Date

        @aribaapi documented
    */
    public static String getStringValue (Date date, Locale locale, TimeZone timeZone)
    {
            // format dates for today with "Today" string
        if (Date.sameDay(date, new Date(date.calendarDate()), timeZone)) {
            String format;
            if (Date.timeIsMidnight(date, timeZone)) {
                format = TodayFormatKey;
            }
            else {
View Full Code Here

Examples of ch.njol.skript.util.Date

            current.changelog = "- " + StringEscapeUtils.unescapeHtml("" + cl).replace("<br>", "").replace("<p>", "").replace("</p>", "").replaceAll("\n(?!\n)", "\n- ");
          } else if (element.equalsIgnoreCase("pubDate")) {
            if (current == null)
              continue;
            synchronized (RFC2822) { // to make FindBugs shut up
              current.date = new Date(RFC2822.parse(reader.nextEvent().asCharacters().getData()).getTime());
            }
          }
        }
      }
    } catch (final IOException e) {
View Full Code Here

Examples of ch.sahits.game.openpatrician.model.Date

   * @param y position of the table header baseline
   * @throws FontFormatException
   * @throws IOException
   */
  private void drawTableHeader(Graphics2D g2d,final int y) throws FontFormatException, IOException{
    Date date = Date.getInstance(0); // TODO very ugly solution
    GlyphVector gv = opPainter.createGlyphVector(g2d, date.getStartOfWeek()+" to "+date.getEndOfWeek(), 19); // TODO externalize
    int x = positions.lastWeek+50-(int)Math.rint(gv.getVisualBounds().getWidth());
    g2d.drawGlyphVector(gv, x, y);
    String columnTitle = "Forecast";
    gv = opPainter.createGlyphVector(g2d, columnTitle, 19);
    g2d.drawGlyphVector(gv, positions.forecast, y);
View Full Code Here

Examples of com.any_erp_vendor.moa.objects.resources.v1_0.Date

      if (sDate != null && sDate.length() > 0) {
        try {
          java.util.Date d = formatter.parse(sDate);
          Calendar calendar = new GregorianCalendar();
          calendar.setTime(d);
          Date bDate = new Date("BirthDate");
          bDate.setMonth(Integer.toString(calendar.get(Calendar.MONTH)+1));
          bDate.setDay(Integer.toString(calendar.get(Calendar.DAY_OF_MONTH)));
          bDate.setYear(Integer.toString(calendar.get(Calendar.YEAR)));
          bPerson.setBirthDate(bDate);
        } catch (Exception exc) {
          org.openeai.OpenEaiObject.logger.fatal(exc.getMessage(), exc);
          bp_resultsTextArea.setText("Invalid BirthDate '" + sDate + "'  " + exc.getMessage());
          return;
View Full Code Here

Examples of com.asakusafw.runtime.value.Date

            all.set("c_short", (short) 1023);
            all.set("c_long", 100000L);
            all.set("c_float", 1.5f);
            all.set("c_double", 2.5f);
            all.set("c_decimal", new BigDecimal("3.1415"));
            all.set("c_date", new Date(2011, 9, 1));
            all.set("c_datetime", new DateTime(2011, 12, 31, 23, 59, 59));
            p.setParameters(all.unwrap());
            ps.executeUpdate();

            ps.close();
View Full Code Here

Examples of com.google.api.ads.dfp.axis.v201208.Date

    numberValue3 = new NumberValue();
    numberValue3.setValue("-1");

    dateTime1 = new DateTime();
    Date date1 = new Date();
    date1.setYear(2012);
    date1.setMonth(12);
    date1.setDay(2);
    dateTime1.setDate(date1);
    dateTime1.setHour(12);
    dateTime1.setMinute(45);
    dateTime1.setSecond(0);
    dateTime1.setTimeZoneID(TIME_ZONE_ID1);
View Full Code Here

Examples of com.google.api.ads.dfp.axis.v201211.Date

    numberValue3 = new NumberValue();
    numberValue3.setValue("-1");

    dateTime1 = new DateTime();
    Date date1 = new Date();
    date1.setYear(2012);
    date1.setMonth(12);
    date1.setDay(2);
    dateTime1.setDate(date1);
    dateTime1.setHour(12);
    dateTime1.setMinute(45);
    dateTime1.setSecond(0);
    dateTime1.setTimeZoneID(TIME_ZONE_ID1);
View Full Code Here

Examples of com.google.api.ads.dfp.axis.v201302.Date

    numberValue3 = new NumberValue();
    numberValue3.setValue("-1");

    dateTime1 = new DateTime();
    Date date1 = new Date();
    date1.setYear(2012);
    date1.setMonth(12);
    date1.setDay(2);
    dateTime1.setDate(date1);
    dateTime1.setHour(12);
    dateTime1.setMinute(45);
    dateTime1.setSecond(0);
    dateTime1.setTimeZoneID(TIME_ZONE_ID1);
View Full Code Here

Examples of com.google.api.ads.dfp.axis.v201306.Date

    numberValue3 = new NumberValue();
    numberValue3.setValue("-1");

    dateTime1 = new DateTime();
    date1 = new Date();
    date1.setYear(2012);
    date1.setMonth(12);
    date1.setDay(2);
    dateTime1.setDate(date1);
    dateTime1.setHour(12);
View Full Code Here

Examples of com.google.api.ads.dfp.axis.v201308.Date

    numberValue3 = new NumberValue();
    numberValue3.setValue("-1");

    dateTime1 = new DateTime();
    date1 = new Date();
    date1.setYear(2012);
    date1.setMonth(12);
    date1.setDay(2);
    dateTime1.setDate(date1);
    dateTime1.setHour(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.