Android Second to Time getDfferenceInMinute(long miliseconds)

Here you can find the source of getDfferenceInMinute(long miliseconds)

Description

This method used to get difference from minute.

Parameter

Parameter Description
miliseconds represented Long milliseconds

Return

represented

Declaration

public static long getDfferenceInMinute(long miliseconds) 

Method Source Code

//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);
    }
}

Related

  1. calculateDhms(int seconds)
  2. secondsToString(int seconds)
  3. intSecondsToStringMinSec(int input)
  4. getTimeRemaining(long durationInMilliseconds)
  5. timeRemaining(double seconds)
  6. getTimeForm(long milliseconds)
  7. milliSecondsToTimer(long milliseconds)
  8. getTime(int minutes, int seconds)
  9. getElapsedSeconds(long start, long end)