Java Timestamp Now getTimestamp()

Here you can find the source of getTimestamp()

Description

get Timestamp

License

Open Source License

Declaration

public static java.sql.Timestamp getTimestamp() 

Method Source Code

//package com.java2s;
/**//from  w w w. j av  a 2  s .  c om
 *
 * Copyright (c) 2012 ChinaSoft International Co., Ltd.
 * All rights reserved.
 * This software is the confidential and proprietary information of
 * ChinaSoft International. ("Confidential Information").
 * You shall not disclose such Confidential Information and shall use it
 * only in accordance with the terms of the license agreement you entered
 * into with ChinaSoft International.
 *
 * ?????????
 * 2012-5-21 ??
 */

public class Main {

    public static java.sql.Timestamp getTimestamp() {
        return new java.sql.Timestamp(new java.util.Date().getTime());
    }
}

Related

  1. getCurrentTimestamp()
  2. getCurrentTimeStamp(int offsetDays)
  3. getCurrentTimeStamp(String format)
  4. getCurrentTimestampAsString()
  5. getNowTimeStamp()
  6. getTimestamp()
  7. getTimestamp()
  8. getTimestamp()
  9. getTimestamp()