Here you can find the source of addDaysToTimestamp(Timestamp start, int days)
public static Timestamp addDaysToTimestamp(Timestamp start, int days)
//package com.java2s; //License from project: Apache License import java.sql.Timestamp; public class Main { public static Timestamp addDaysToTimestamp(Timestamp start, int days) { return new Timestamp(start.getTime() + (24L * 60L * 60L * 1000L * days)); }/*w ww . ja v a 2s. c o m*/ public static Timestamp addDaysToTimestamp(Timestamp start, Double days) { return new Timestamp(start.getTime() + ((int) (24L * 60L * 60L * 1000L * days))); } }