Here you can find the source of addMinutesToDate(final Date d, final int minutes)
private static Date addMinutesToDate(final Date d, final int minutes)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; public class Main { private static Date addMinutesToDate(final Date d, final int minutes) { final Calendar c = Calendar.getInstance(); c.setTime(d);/*from ww w. j a v a 2 s. c om*/ c.add(Calendar.MINUTE, minutes); return c.getTime(); } }