private String returnFullTimes(int theSecond) { int h = 0, m = 0, s = 0; h = (int)Math.floor(theSecond/3600); if(h > 0) { m = (int)Math.floor((theSecond-h*3600)/60); if(m > 0) { s = theSecond-h*3600-m*60; }else { s = theSecond-h*3600; //原来这里写错了,写成了s = theSecond; } }else { m = (int)Math.floor(theSecond/60); if(m > 0) { s = theSecond-m*60; }else { s = theSecond; } } return h + "时 " + m + "分 " + s + "秒 "; }