[concurrency-interest] Re: SynchronizedLong vs. other locks

Tim Peierls tim at peierls.net
Fri Jul 8 10:23:44 EDT 2005


Dawid Kurzyniec wrote:
> private static final long DAY = 24*60*60*1000;
> 
> private static long getTomorrowTime() {
>    return (((System.currentTimeMillis() + DAY)/DAY)*DAY;
> }

Does this deal with leap seconds properly?

--tim



More information about the Concurrency-interest mailing list