Java Timestamp getCurentTimestamp()

Here you can find the source of getCurentTimestamp()

Description

Gets the curent timestamp.

License

Open Source License

Return

the curent timestamp

Declaration

public static Timestamp getCurentTimestamp() 

Method Source Code


//package com.java2s;
import java.sql.Timestamp;

public class Main {
    /**//from ww  w.j ava2s.  c om
     * Gets the curent timestamp.
     * 
     * @return the curent timestamp
     */
    public static Timestamp getCurentTimestamp() {
        return new Timestamp(System.currentTimeMillis());
    }
}

Related

  1. fromDate(Timestamp timestamp)
  2. fromTimestamp(Timestamp timestamp)
  3. generateTimestamp()
  4. getBeforeDate(final Timestamp baseTime, final int period, final int unit)
  5. getCalendarTimestamp(Calendar cal)
  6. getCurFullTimestampStr()
  7. getCurrTimestamp()
  8. getCurTime2Timestamp()
  9. getCurTimestamp()