Here you can find the source of getMinute(long mills)
public static int getMinute(long mills)
//package com.java2s; //License from project: Open Source License public class Main { public final static long ONE_MINUTE_MILLS = 60 * 1000L; public static int getMinute(long mills) { return (int) (mills / ONE_MINUTE_MILLS); }//from w w w .j av a 2 s . co m }