Import java. text. simpleDateFormat; import java. util. calendar; import java. util. date; import java. util. gregorianCalendar; public class Demo {/*** @ param args */public static void main (String [] args) {// TODO Auto-generated method stubSystem. out. println (converLongTimeToStr (3630000);}/*** converts the number of milliseconds to "Minutes, seconds", for example ". If it exceeds 60 minutes, "hour, minute, and second" is displayed, for example, "01:01:30 ** @ param millisecond to be converted **/public static String converLongTimeToStr (long time) {int ss = 1000; int mi = ss * 60; int hh = mi * 60; long hour = (time)/hh; long minute = (time-hour * hh) /mi; long second = (time-hour * hh-minute * mi)/ss; String strHour = hour <10? "0" + hour: "" + hour; String strMinute = minute <10? "0" + minute: "" + minute; String strSecond = second <10? "0" + second: "" + second; if (hour> 0) {return strHour + ":" + strMinute + ":" + strSecond ;} else {return strMinute + ":" + strSecond ;}}}