Here you can find the source of getMinOfHour(long l1)
public static int getMinOfHour(long l1)
//package com.java2s; import java.util.Calendar; public class Main { public static int getMinOfHour(long l1) { Calendar cal1 = Calendar.getInstance(); cal1.setTimeInMillis(l1);// w w w . jav a 2 s . c om return cal1.get(Calendar.MINUTE); } /** * Returns the value of the given calendar field. * * @param l1 timeVal * @param type calendar-specific value * @return */ public static int get(long l1, int type) { Calendar cal1 = Calendar.getInstance(); cal1.setTimeInMillis(l1); return cal1.get(type); } }