Here you can find the source of getDfferenceInMinute(long miliseconds)
Parameter | Description |
---|---|
miliseconds | represented Long milliseconds |
public static long getDfferenceInMinute(long miliseconds)
//package com.java2s; import java.util.Calendar; public class Main { /**//from w ww . j a v a2s .c om * This method used to get difference from minute. * * @param miliseconds * represented {@link Long} milliseconds * @return represented {@link Long} */ public static long getDfferenceInMinute(long miliseconds) { long diff = (Calendar.getInstance().getTimeInMillis() - miliseconds); diff = diff / 60000L; return Math.abs(diff); } }