Here you can find the source of offsetMinute(Date date, int offset)
public static Date offsetMinute(Date date, int offset)
//package com.java2s; import java.util.Calendar; import java.util.Date; public class Main { public static Date offsetMinute(Date date, int offset) { Calendar calendar = Calendar.getInstance(); calendar.setTime(date);/* w ww . j a v a 2 s . c om*/ calendar.set(Calendar.MINUTE, (calendar.get(Calendar.MINUTE) + offset)); return calendar.getTime(); } }