Java Timestamp Now getTimestamp()

Here you can find the source of getTimestamp()

Description

get Timestamp

License

Open Source License

Declaration

public static Timestamp getTimestamp() 

Method Source Code

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

import java.sql.Timestamp;
import java.util.Date;

public class Main {
    public static Timestamp getTimestamp() {
        Date utilDate = new Date();
        Timestamp sq = new Timestamp(utilDate.getTime());
        System.out.println(sq);//from   w w w . j a va2 s  .co m
        return sq;
    }
}

Related

  1. getTimestamp()
  2. getTimestamp()
  3. getTimeStamp()
  4. getTimeStamp()
  5. getTimestamp()
  6. getTimeStamp()
  7. getTimestamp()
  8. getTimeStamp()
  9. getTimestamp()