Java Milliseconds getMilliSecond(Date d1, Date d2)

Here you can find the source of getMilliSecond(Date d1, Date d2)

Description

get Milli Second

License

Open Source License

Declaration

public static long getMilliSecond(Date d1, Date d2) 

Method Source Code

//package com.java2s;

import java.util.*;

public class Main {

    public static long getMilliSecond(Date d1, Date d2) {
        long d1MS = d1.getTime();
        long d2MS = d2.getTime();
        return Math.abs(d1MS - d2MS);
    }/*from  www  . j a v a 2  s .co  m*/
}

Related

  1. getMillis(long timeInMinutes)
  2. getMillis(String _cal)
  3. getMillis(String dateStr)
  4. getMillis(String decimal)
  5. getMillisDisplayable(long millis)
  6. getMillisecond(Date date)
  7. getMillisecond(String forDate)
  8. getMilliSecondBetween(long start, long end)
  9. getMillisecondDay()