Here you can find the source of createTimestamp(final int aYear, final int aMonth, final int aDate, final int aHour, final int aMinute, final int aSecond)
public static Timestamp createTimestamp(final int aYear, final int aMonth, final int aDate, final int aHour, final int aMinute, final int aSecond)
//package com.java2s; //License from project: Apache License import java.sql.Timestamp; import java.util.Calendar; public class Main { public static Timestamp createTimestamp(final int aYear, final int aMonth, final int aDate, final int aHour, final int aMinute, final int aSecond) { Calendar c = Calendar.getInstance(); c.set(aYear, aMonth, aDate, aHour, aMinute, aSecond); return new Timestamp(c.getTimeInMillis()); }//from ww w . j a v a2s.c om }