Java Timestamp getCurTimestamp()

Here you can find the source of getCurTimestamp()

Description

get Cur Timestamp

License

Open Source License

Declaration

public static java.sql.Timestamp getCurTimestamp() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {

    public static java.sql.Timestamp getCurTimestamp() {
        java.util.Date today = new java.util.Date();
        java.sql.Timestamp ts = new java.sql.Timestamp(today.getTime());
        return ts;
    }//from ww w . ja va2s .  co m
}

Related

  1. getCurentTimestamp()
  2. getCurFullTimestampStr()
  3. getCurrTimestamp()
  4. getCurTime2Timestamp()
  5. getCurTimestamp()
  6. getTimeDifference(Timestamp startTime, Timestamp endTime)
  7. getTimeFromTimestamp( java.sql.Timestamp tsZeitpunkt)
  8. getTimeNanoSec(Timestamp t)
  9. getTimeNextDay(Timestamp date)