Examples of formatDate()


Examples of com.jada.content.Formatter.formatDate()

      CreditHeader creditHeader = (CreditHeader) iterator.next();
      CreditDetailDisplayForm creditDisplayForm = new CreditDetailDisplayForm();
      creditDisplayForm.setCreditNum(creditHeader.getCreditNum());
      creditDisplayForm.setCreditTotal(numberFormatter.formatCurrency(creditHeader.getCreditTotal()));
      creditDisplayForm.setCreditStatusDesc(resources.getMessage("order.status." + creditHeader.getCreditStatus()));
      creditDisplayForm.setCreditDatetime(numberFormatter.formatDate(creditHeader.getCreditDate()));
      creditVector.add(creditDisplayForm);
    }
    form.setCreditDetails(creditVector);
   
    createEmptySecureTemplateInfo(request);
View Full Code Here

Examples of com.netflix.priam.aws.S3BackupPath.formatDate()

        Assert.assertEquals("Standard1", backupfile.columnFamily);
        Assert.assertEquals("1234567", backupfile.token);
        Assert.assertEquals("fake-app", backupfile.clusterName);
        Assert.assertEquals(FakeConfiguration.FAKE_REGION, backupfile.region);
        Assert.assertEquals("casstestbackup", backupfile.baseDir);
        String datestr = backupfile.formatDate(new Date(bfile.lastModified()));
        Assert.assertEquals("casstestbackup/"+FakeConfiguration.FAKE_REGION+"/fake-app/1234567/" + datestr + "/SST/Keyspace1/Standard1/Keyspace1-Standard1-ia-5-Data.db", backupfile.getRemotePath());
    }

    @Test
    public void testMetaFileCreation() throws ParseException
View Full Code Here

Examples of com.qt.datapicker.DatePicker.formatDate()

  public void update(Observable o, Object arg) {
    Calendar calendar = (Calendar) arg;
    DatePicker dp = (DatePicker) o;
    //System.out.println("picked=" + dp.formatDate(calendar));
    setValue(dp.formatDate(calendar));
  }

  @Override
  public void mouseClicked(MouseEvent arg0) {
    // instantiate the DatePicker
View Full Code Here

Examples of com.qt.datapicker.DatePicker.formatDate()

    public void update(Observable o, Object arg) {
        Calendar calendar= (Calendar)arg;
        DatePicker dp= (DatePicker)o;
        StringBuffer JdecGenerated16 = new StringBuffer("picked=");
        Trackbug.info(JdecGenerated16.append(dp.formatDate(calendar)).toString());
        jtf.setValue(calendar.getTime());
        fireActionPerformed();
        return;
    }
   
View Full Code Here

Examples of com.xeiam.xchart.internal.chartpart.DateFormatter.formatDate()

    double min = 1358108105100L;
    double max = 1358108105900L;
    double span = Math.abs(max - min); // in data space
    long gridStepHint = (long) (span / 1000 * 74);
    long timeUnit = dateFormatter.getTimeUnit(gridStepHint);
    String stringValue = dateFormatter.formatDate(value, timeUnit);
    assertThat(stringValue, equalTo("05.531"));

    // sec
    value = 1358108105000L;
    min = 1358108101000L;
View Full Code Here

Examples of com.xeiam.xchart.internal.chartpart.DateFormatter.formatDate()

    min = 1358108101000L;
    max = 1358108109000L;
    span = Math.abs(max - min); // in data space
    gridStepHint = (long) (span / 1000 * 74);
    timeUnit = dateFormatter.getTimeUnit(gridStepHint);
    stringValue = dateFormatter.formatDate(value, timeUnit);
    assertThat(stringValue, equalTo("05.000"));

    // min
    value = 1358111750000L;
    min = 1358111690000L;
View Full Code Here

Examples of com.xeiam.xchart.internal.chartpart.DateFormatter.formatDate()

    min = 1358111690000L;
    max = 1358111870000L;
    span = Math.abs(max - min); // in data space
    gridStepHint = (long) (span / 1000 * 74);
    timeUnit = dateFormatter.getTimeUnit(gridStepHint);
    stringValue = dateFormatter.formatDate(value, timeUnit);
    assertThat(stringValue, equalTo("15:50"));

    // hour
    value = 1358111870000L;
    min = 1358101070000L;
View Full Code Here

Examples of com.xeiam.xchart.internal.chartpart.DateFormatter.formatDate()

    min = 1358101070000L;
    max = 1358115470000L;
    span = Math.abs(max - min); // in data space
    gridStepHint = (long) (span / 1000 * 74);
    timeUnit = dateFormatter.getTimeUnit(gridStepHint);
    stringValue = dateFormatter.formatDate(value, timeUnit);
    assertThat(stringValue, equalTo("21:17"));

    // day
    value = 1358112317000L;
    min = 1357939517000L;
View Full Code Here

Examples of com.xeiam.xchart.internal.chartpart.DateFormatter.formatDate()

    min = 1357939517000L;
    max = 1358285117000L;
    span = Math.abs(max - min); // in data space
    gridStepHint = (long) (span / 1000 * 74);
    timeUnit = dateFormatter.getTimeUnit(gridStepHint);
    stringValue = dateFormatter.formatDate(value, timeUnit);
    assertThat(stringValue, equalTo("21:25"));

    // week
    value = 1358112317000L;
    min = 1357075517000L;
View Full Code Here

Examples of com.xeiam.xchart.internal.chartpart.DateFormatter.formatDate()

    min = 1357075517000L;
    max = 1359149117000L;
    span = Math.abs(max - min); // in data space
    gridStepHint = (long) (span / 1000 * 74);
    timeUnit = dateFormatter.getTimeUnit(gridStepHint);
    stringValue = dateFormatter.formatDate(value, timeUnit);
    assertThat(stringValue, equalTo("01-13"));

    // month
    value = 1358112838000L;
    min = 1354397638000L;
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.