Here you can find the source of sqlDateTimeAdd(java.util.Date date, long milliseconds)
public static java.sql.Timestamp sqlDateTimeAdd(java.util.Date date, long milliseconds)
//package com.java2s; //License from project: Open Source License public class Main { public static java.sql.Timestamp sqlDateTimeAdd(java.util.Date date, long milliseconds) { long ct;// w w w . ja v a 2 s . c o m if (date == null) { ct = System.currentTimeMillis(); } else { ct = date.getTime(); } return new java.sql.Timestamp(ct + milliseconds); } }