[concurrency-interest] Timeunit.convertMillies()

Doug Lea dl@cs.oswego.edu
Wed, 10 Sep 2003 16:16:53 -0400


> I was wondering if it was possible to add a unit.toMills() 

> It would also avoid the risk of people using 
> TimeUnit.MILLISECONDS.convert(time, unit) by mistake.


And for consistency, all four:
  toNanos, no Micros, toMillis, toSeconds

This is the kind of usage-discovered API flaw that we are thrilled to
be able to fix at this stage! We'll put it in. Thanks!

-Doug