Back to project page WorkOut.
The source code is released under:
Apache License
If you think the Android project WorkOut listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.damcode.workout; /*from www. jav a 2s . c o m*/ /** * Created by dm on 2/10/2014. */ public class StaticUtils { public static String stringifyWorkoutTime(int time){ int hours = (time / 60) / 60; int mins = (time / 60) % 60; int secs = (time % 60); if(hours == 0 && mins == 0 && secs == 0){ return new String("--:--:--"); } return new String(hours + ":" + String.format("%02d", mins) + ":" + String.format("%02d", secs)); } }