Back to project page 5th.
The source code is released under:
GNU General Public License
If you think the Android project 5th 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 com.zhanglin.practice; //from ww w . j av a2 s .co m public class formatTime { public formatTime() { super(); } public String formatTime(int time) { time/=1000; int minute=time/60; //int hour=minute/60; int second=time%60; minute%=60; return String.format("%02d:%02d",minute,second); } public String formatTime(long time) { time/=1000; long minute=time/60; //int hour=minute/60; long second=time%60; minute%=60; return String.format("%02d:%02d",minute,second); } }