Package java.util

Examples of java.util.Date


    // output to console
    super.doLog(level, msg, cls, method, lineno);
   
    // append output to file
    append(
  m_DateFormat.format(new Date()) + " " + cls + " " + method + m_LineFeed
  + level + ": " + msg + m_LineFeed);
  }
View Full Code Here


            case FLOAT:
                return new Double(dvalue);

            case DATE:
                return new Date(lvalue);

            case NODE:
                return nvalue;

            case JAVAOBJECT:
View Full Code Here

            case DATE:

                SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

                return format.format(new Date(lvalue));

            case INTEGER:
                return Long.toString(lvalue);

            case FLOAT:
View Full Code Here

     *
     * @return ...
     */
    public Date getDateValue() {
        if (type == DATE) {
            return new Date(lvalue);
        }

        return null;
    }
View Full Code Here

                }
            } else if ("date".equals(elementType)) {
                SimpleDateFormat format = new SimpleDateFormat(DATEFORMAT);

                try {
                    Date date = format.parse(charValue);

                    currentNode.setDate(elementName, date);
                } catch (ParseException e) {
                    currentNode.setString(elementName, charValue);
                }
View Full Code Here

        if (slashPos > 0)
            sizeUsed = fields[1].substring(0, slashPos);
        long size = Long.parseLong(sizeUsed) * blocksize;
       
        // 3 & 4 fields are date time
        Date lastModified = null;
        try {
            lastModified = formatter1.parse(fields[2] + " " + fields[3]);
        }
        catch (ParseException ex) {
            try {
View Full Code Here

        List<ProcessInstanceLog> result = session.createQuery(
        "from ProcessInstanceLog as log where log.processInstanceId = ? and log.end is null")
            .setLong(0, processInstanceId).list();
        if (result != null && result.size() != 0) {
          ProcessInstanceLog log = result.get(result.size() - 1);
          log.setEnd(new Date());
          session.update(log);
        }
        session.getTransaction().commit();
    }
View Full Code Here

    }
   
    public ProcessInstanceLog(long processInstanceId, String processId) {
        setProcessInstanceId(processInstanceId);
        setProcessId(processId);
        setStart(new Date());
    }
View Full Code Here

    public Order(final int number, String customer) {
        this.number = number;
        this.items = new HashMap<Integer, OrderItem>();
        this.customer = customer;
        this.date = new Date();
    }
View Full Code Here

        this.processInstanceId = processInstanceId;
        this.processId = processId;
    this.variableInstanceId = variableInstanceId;
    this.variableId = variableId;
    setValue(value);
        this.date = new Date();
    }
View Full Code Here

TOP

Related Classes of java.util.Date

Copyright © 2018 www.massapicom. 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.