Here you can find the source of getMinuteBefore(Date date, int minute)
public static Date getMinuteBefore(Date date, int minute)
//package com.java2s; import java.util.Calendar; import java.util.Date; public class Main { public static Date getMinuteBefore(Date date, int minute) { Calendar calendar = Calendar.getInstance(); calendar.setTime(date);/*from w w w.j av a2 s.co m*/ calendar.add(Calendar.MINUTE, -minute); return calendar.getTime(); } }