Here you can find the source of getDaysMin(Date d)
public static long getDaysMin(Date d)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class Main { public static long getDaysMin(Date d) { Calendar c1 = new GregorianCalendar(); c1.setTime(d);//from w w w . j av a2 s . co m long m = c1.get(Calendar.MINUTE); return m; } }