Here you can find the source of getExpirationInMilliSeconds(long currentTime, int expirationTime)
public static long getExpirationInMilliSeconds(long currentTime, int expirationTime)
//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 }