Java Time API - A better way to get total elapsed time

徘徊边缘 提交于 2019-12-06 09:19:46
John B

Seems like you need the PeriodFormatter from JodaTime. See below links:

How to format a duration in java? (e.g format H:MM:SS)

Formatting a Duration in Java 8 / jsr310

Given these two, I suggest using JodaTime for Duration.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!