Here you can find the source of getMinuteInt(long time)
public static int getMinuteInt(long time)
//package com.java2s; public class Main { public static int getMinuteInt(long time) { if (time > (60 * 60)) { return (int) ((time % (60 * 60)) / (60)); } else {/*from www . j a v a 2 s . co m*/ return (int) (time / (60)); } } }