Java Milliseconds diffInMillis(long instantOne, long instantTwo)

Here you can find the source of diffInMillis(long instantOne, long instantTwo)

Description

Diff is for instant, does not consider time zone

License

Open Source License

Declaration

public static long diffInMillis(long instantOne, long instantTwo) 

Method Source Code

//package com.java2s;
/**//from  w ww  .j  a  v  a2s.  c  om
 * Confidential Information.
 * Copyright (C) 2003, 2004, 2005, 2006 Eric Link, All rights reserved.
 * PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 **/

public class Main {
    /**
     * Diff is for instant, does not consider time zone
     **/
    public static long diffInMillis(long instantOne, long instantTwo) {
        return instantTwo - instantOne;
    }
}

Related

  1. dateToMillis(Date date)
  2. dateToMillis(long now)
  3. dayValue2Millisecond(int dayValue)
  4. decomposeMillis(long millis)
  5. delayUntilNextSecond(int millis)
  6. diffMillisec(String lhs, String rhs)
  7. diffTimeInMillis(long start, long end)
  8. durationInMillis(long startNano)
  9. elapsedMillis(long milliseconds)