Here you can find the source of getTimestamp()
public static java.sql.Timestamp getTimestamp()
//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()); } }