Here you can find the source of getMinute(Date date)
public static int getMinute(Date date)
//package com.java2s; import java.util.*; public class Main { public static Calendar calendar = new GregorianCalendar(); public static int getMinute(Date date) { calendar.setTime(date);/*from ww w . j ava 2s .c om*/ return calendar.get(Calendar.MINUTE); } }