Here you can find the source of getMinute(Date d)
public static int getMinute(Date d)
//package com.java2s; //License from project: Artistic License import java.util.Calendar; import java.util.Date; public class Main { public static int getMinute(Date d) { return get(d, Calendar.MINUTE); }//from w ww .j ava 2 s .c o m private static int get(Date d, int field) { Calendar cal = Calendar.getInstance(); cal.setTime(d); return cal.get(field); } }