Here you can find the source of getMinutesDiff(long from, long to)
public static long getMinutesDiff(long from, long to)
//package com.java2s; //License from project: Apache License public class Main { public static final long MINUTE = 60 * 1000; public static long getMinutesDiff(long from, long to) { long delta = to - from; return delta / MINUTE; }/*from ww w . j a v a2 s . c om*/ }