Here you can find the source of minuteAdd(Date date, int val)
public static Date minuteAdd(Date date, int val)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; public class Main { public static Date minuteAdd(Date date, int val) { Calendar calendar = Calendar.getInstance(); calendar.setTime(date);/* w w w . j av a 2 s .co m*/ calendar.add(Calendar.MINUTE, val); date = calendar.getTime(); return date; } }