Java tutorial
//package com.java2s; //License from project: Apache License import java.util.Date; public class Main { public static Date addMinutes(Date aDate, long minutes) { long millesecondsToAdd = 60 * 1000 * minutes; return new Date(aDate.getTime() + millesecondsToAdd); } public static Date addMinutes(Date aDate, double minutes) { long millesecondsToAdd = (long) (60 * 1000 * minutes); return new Date(aDate.getTime() + millesecondsToAdd); } }