Examples of format()


Examples of org.timepedia.chronoscope.client.util.DateFormatter.format()

    if (common != null) {
      ret += common.format(i.getOffsetTime()) + ", ";
    }
    if (prev != null) {
      if (false == useformat) {
        ret += prev.format(i.getOffsetTime()) + " - " + prev.format(e.getOffsetTime());
      } else {
        ret += prev.format(i.getOffsetTime()) + "/" + format(i) + " - " + prev.format(e.getOffsetTime()) + "/" + format(e);
      }
    } else {
      ret += getRangeLabelCompact(interval);
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.util.SVNDate.format()

        SVNProperties revProps = fsfs.getRevisionProperties(revision);
       
        String revisionDate = revProps.getStringValue(SVNRevisionProperty.DATE);
        if (revisionDate != null) {
            SVNDate date = SVNDate.parseDate(revisionDate);
            revProps.put(SVNRevisionProperty.DATE, date.format());
        }
       
        ByteArrayOutputStream encodedProps = new ByteArrayOutputStream();
        SVNAdminHelper.writeProperties(revProps, null, encodedProps);
       
View Full Code Here

Examples of org.uengine.util.ExpressionFormatter.format()

            return e.getMessage();
          }
        }
      };
     
      return ef.format(fStr);
    }else
      return getListFieldType().getFieldValue(instanceDAO, genericContext);
  }

}
View Full Code Here

Examples of org.ulti.dev.powermeter.util.RFC3339DateFormat.format()

      Element subjectElement = new Element("subject", meterNS);
      subjectElement.setText(subject);

      Element startElement = new Element("startTime", meterNS);
      startElement.setAttribute("uncertainty", "1.0");
      startElement.setText(idf.format(event.getStart()));

      Element endElement = new Element("endTime", meterNS);
      endElement.setAttribute("uncertainty", "1.0");
      endElement.setText(idf.format(event.getEnd()));
View Full Code Here

Examples of processing.app.format.AutoFormat.format()

  public void run() {
    final String source = editor.getText();

    try {
      final AutoFormat formatter = new AutoFormat();
      final String formattedText = formatter.format(source);
      // save current (rough) selection point
      int selectionEnd = editor.getSelectionStop();

      // make sure the caret would be past the end of the text
      if (formattedText.length() < selectionEnd - 1) {
View Full Code Here

Examples of pspdash.data.ResultSet.format()

        int firstCol = (skipRowHdr ? 1 : 0);
        for (int row=firstRow;  row <= tableData.numRows();  row++) {
            out.println("<TR>");
            for (int col=firstCol;  col <= tableData.numCols();  col++) {
                out.print("<TD" + getColAttributes(col) + ">");
                out.print(esc(tableData.format(row, col)));
                out.println("</TD>");
            }
            out.println("</TR>");
        }
View Full Code Here

Examples of pspdash.data.SimpleData.format()

            SimpleData d = getSimpleValue(listName);
            if (d instanceof ListData)   return (ListData) d;
            if (d instanceof StringData) return ((StringData) d).asList();
            if (d instanceof SimpleData) {
                ListData result = new ListData();
                result.add(d.format());
            }
            return EMPTY_LIST;
        } else {
            // listName names an environment variable or parameter
            ListData result = new ListData();
View Full Code Here

Examples of pt.opensoft.math.BigNumber.format()

      str = "-" + str.substring(1).trim();
    }
    if (str.trim().equals("")) return getEmpty(length);
    BigNumber amount = new BigNumber(str.trim(), precision);
    if (amount.getValue() == 0) return getEmpty(length);
    return amount.format();
  }

}
View Full Code Here

Examples of pt.opensoft.util.Date.format()

  public synchronized void open () {
    if (writer != null) return;
    Date now = new Date();
    day = now.getDay();
    try {
      writer = new PrintWriter(new OutputStreamWriter(new FileOutputStream(filename + "-" + now.format()
        + ".log", true), SystemParameters.DEFAULT_ENCODING), true);
    } catch (IOException e) {
      throw new LogException(e);
    }
  }
View Full Code Here

Examples of pt.opensoft.util.DateTime.format()

      return nf.format(fValue);
    }

    if (type.equals("D")) {  // date
      DateTime date = new DateTime(value, format);
      return date.format(format);
    }

    return value;
  }
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.