Java Milliseconds getExpirationInMilliSeconds(long currentTime, int expirationTime)

Here you can find the source of getExpirationInMilliSeconds(long currentTime, int expirationTime)

Description

get Expiration In Milli Seconds

License

Open Source License

Declaration

public static long getExpirationInMilliSeconds(long currentTime, int expirationTime) 

Method Source Code

//package com.java2s;

public class Main {
    public static long getExpirationInMilliSeconds(long currentTime, int expirationTime) {
        long expiryInMsecs = ((long) expirationTime << 8);
        long diff = expiryInMsecs - currentTime;
        return (diff < 0L) ? 0L : diff;
    }//from   w ww . jav  a2 s . c  om
}

Related

  1. FormatDateTime(Calendar p_date, String p_seperator, boolean p_showMilliseconds)
  2. fractionOfDayToMilliseconds(float fFractionOfDay)
  3. getDurationFromMillis(final long millis)
  4. getDurationSecFromMillisDouble(long millis)
  5. getElapsedTimeInMilliseconds(Date startDate, Date endDate)
  6. getExpirationMillisAbs(int recordExpirationTimestamp)
  7. getFullSecondsElapsedTimeMillis(long start, long end)
  8. getLogTimeFromMillis(Long millis)
  9. getMillis()