将长秒数转成24小时制时间返回字符串类型
private string avgStayDate(int Second){string reDateStr = string.Empty;if (Second > 86400){return reDateStr = "大于1天";}else{TimeSpan ts = new TimeSpan(0, 0, 0, Second);int h = ts.Hours;int m = ts.Minutes;int s = ts.Seconds;if (s >= 10 & s != 0){if (m >= 10 & m != 0){if (h >= 10 & h != 0){reDateStr = h.ToString() + ":" + m.ToString() + ":" + s.ToString();}else{reDateStr = "0" + h.ToString() + ":" + m.ToString() + ":" + s.ToString();}}else{reDateStr = "0" + h.ToString() + ":0" + m.ToString() + ":" + s.ToString();}}else{reDateStr = "0" + h.ToString() + ":0" + m.ToString() + ":0" + s.ToString();}}return reDateStr;}