Here you can find the source of createFutureDate(int min)
public static Long createFutureDate(int min)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; public class Main { public static Long createFutureDate(int min) { Calendar cal = Calendar.getInstance(); cal.add(Calendar.MINUTE, min); return cal.getTimeInMillis(); }//from www .j a va 2 s . c o m }