2011/1/16 Ran Berenfeld <[email protected]>:
> // cache for 1 year
> private static final long _cacheTime = (1000 * 60 * 60 * 24 * 365);
With this sample program:
public class foo{
public static void main(String[] a){
long _cacheTime = (1000 * 60 * 60 * 24 * 365);
System.out.println("_cacheTime: " + _cacheTime);
long _cacheTime2 = (1000L * 60 * 60 * 24 * 365);
System.out.println("_cacheTime: " + _cacheTime2);
}
}
It prints:
_cacheTime: 1471228928
_cacheTime: 31536000000
1471228928 msecs = about 17 days
Best regards,
Konstantin Kolinko
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]