Guava: Provide a Converter<TimeUnit, ChronoUnit>

Created on 6 Apr 2016  路  11Comments  路  Source: google/guava

currently there's no official way (in JDK 8) for converting between java.util.concurrent.TimeUnit and ChronoUnit (there will be in JDK 9, though).

So we should consider providing one. Maybe it's time to start selectively open sourcing our com.google.common.time package?

platform=java8 type=addition

Most helpful comment

We just made the transition to Java 8 internally last week, and we plan on releasing a Guava 21 (with Java8 support) sometime next quarter.

All 11 comments

@kluever hi, please let me know what is the status for this issue, I would like to contribute.

There won't be any progress on this until we've completed the Guava for JDK8 transition.

@kluever Is there a way to track that transition? Just the label?

We just made the transition to Java 8 internally last week, and we plan on releasing a Guava 21 (with Java8 support) sometime next quarter.

Cool! Looking forward to it 馃槃

Is it implemented internally? I'd really like to use the conversion with Guava 21.

I have a pending CL with this...I'll try to prioritize getting it API reviewed and released. Thanks for the bump.

...or maybe in Guava 22? ;)

The reason we've been on the fence about adding this is that it already exists in threeten-extra as:

And we're hesitant to add competing solutions when a reasonable solution already exists.

We've decided not to compete with threeten-extra.

@kevinb9n I think this would be good to note in the Ideas Graveyard, so that people are less likely to ask for this feature again in the future

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thecoop picture thecoop  路  4Comments

JWT007 picture JWT007  路  4Comments

terence1984 picture terence1984  路  3Comments

PhilippWendler picture PhilippWendler  路  4Comments

Lysergid picture Lysergid  路  4Comments