Formatting seconds and minutes

前端 未结 4 1681
孤独总比滥情好
孤独总比滥情好 2020-12-31 07:19

I need to format seconds and minutes from milliseconds. I am using countdownTimer. does anyone have sugestions? I looked at joda time. But all i need is a format so i have 1

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-31 08:08

    I used Apache Commons StopWatch class. The default output of it's toString method is ISO8601-like, hours:minutes:seconds.milliseconds.

    Example of Apache StopWatch

提交回复
热议问题