Here you can find the source of afterMinutes(Timestamp date, long min)
public static Timestamp afterMinutes(Timestamp date, long min)
//package com.java2s; import java.sql.Timestamp; public class Main { private static final long ONE_MINUTE = 60000; public static Timestamp afterMinutes(Timestamp date, long min) { long fTime = date.getTime() + min * ONE_MINUTE; return new Timestamp(fTime); }//from w w w . j a v a2 s . co m }