public String timeChange(double time){ int hour=(int)(time/3600); int minute=(int)(time%3600/60); int second=(int)(time%3600%60); return (hour>10?(""+hour):("0"+hour))+":"+(minute>10?(""+minute):("0"+minute))+":"+(second>10?(""+second):("0"+second)); }
原文地址:https://www.cnblogs.com/huanghuanghui/p/9407221.html
时间: 2024-10-26 20:33:34