Is there a way to convert milliseconds to minutes using java.util.concurrent.TimeUnit?
This answer seems to suggest that you can use a TimeUnit.MILLISECONDS.toMinutes()
method, and the documentation suggests that you could use the TimeUnit.MILLISECONDS.convert()
method with TimeUnit.MINUTES
- the problem is that neither TimeUnit.MINUTES
or TimeUnit.MILLISECONDS.toMinutes()
seem to actually exist.
Am I missing something here?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…