Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.Calendar;

public class Main {
    /**
     * 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);
    }
}