2011/1/16 Ran Berenfeld <ich...@ichess.co.il>:
>    // 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to