Formatting seconds and minutes

前端 未结 4 1563
孤独总比滥情好
孤独总比滥情好 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:24

    i'd use

    org.apache.commons.lang.time.DurationFormatUtils.formatDuration(millisUntilFinished, "mm:ss")
    

提交回复
热议问题