Java Long Number to Time getTimestampDiff(Long old)

Here you can find the source of getTimestampDiff(Long old)

Description

get Timestamp Diff

License

Open Source License

Declaration

public static Long getTimestampDiff(Long old) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {
    public static Long getTimestampDiff(Long old) {
        return new Date().getTime() - old;
    }/*from w ww  .  j av  a2 s .c  om*/
}

Related

  1. getTimeFromLong(long diff)
  2. getTimeFromLong(long diff)
  3. getTimeLong()
  4. getTimeOf12(long time)
  5. getTimeOld(long time)
  6. getTimeStr(long t)
  7. getTimeStr(long timeLong)
  8. getTimeString(long nanoTime)
  9. getTimeString(long time)