Java Timestamp Now getCurrentTimeStamp()

Here you can find the source of getCurrentTimeStamp()

Description

get Current Time Stamp

License

Open Source License

Declaration

public static Timestamp getCurrentTimeStamp() 

Method Source Code


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

import java.util.GregorianCalendar;

public class Main {

    public static Timestamp getCurrentTimeStamp() {
        return new Timestamp(new GregorianCalendar().getTime().getTime());
    }/*from  w  ww  .  j  av  a 2s.co m*/
}

Related

  1. getCurrentTimestamp()
  2. getCurrentTimeStamp()
  3. getCurrentTimeStamp()
  4. getCurrentTimestamp()
  5. getCurrentTimestamp()
  6. getCurrentTimestamp()
  7. getCurrentTimestamp()
  8. getCurrentTimeStamp()
  9. getCurrentTimeStamp()