Package org.ulti.dev.powermeter.util

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


      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()));

      Element quantityElement = new Element("quantity", meterNS);
      quantityElement.setAttribute("uncertainty", "0.001");
      quantityElement.setAttribute("unit", "kW h");
      quantityElement.setText(event.getQuantity() + "");
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.