Here you can find the source of dateAddMinutes(Date date, int minutes)
public static Date dateAddMinutes(Date date, int minutes)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; public class Main { public static Date dateAddMinutes(Date date, int minutes) { if (date == null) return null; Calendar cal = Calendar.getInstance(); cal.setTime(date);//from ww w . ja v a 2 s .c o m cal.add(Calendar.MINUTE, minutes); return cal.getTime(); } }