Here you can find the source of currentTimestampPlus(final long seconds)
public static Timestamp currentTimestampPlus(final long seconds)
//package com.java2s; //License from project: Apache License import java.sql.Timestamp; public class Main { public static Timestamp currentTimestampPlus(final long seconds) { return new Timestamp(System.currentTimeMillis() + seconds * 1000); }//from ww w .j a v a 2 s . c o m }