开发者

Android java.util.concurrent.TimeUnit Convert Milliseconds to Minutes

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?


I believe TimeUnit might have added minutes in 1.6: 1.6 docs, 1.5 docs


All you need to do from ms to minutes is divide by 60000. Why not just do that>

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜