public static string MillisecondsToTime(double se) { string str = ""; TimeSpan ts = TimeSpan.FromMilliseconds(se); if (ts.Days > 0) str += ts.Days + "天"; if (ts.Hours > 0) str += ts.Hours + "时"; if (ts.Minutes > 0) str += ts.Minutes + "分"; if (ts.Seconds > 0) str += ts.Seconds + "秒"; if (ts.Milliseconds > 0) str += ts.Milliseconds + "毫秒"; return str; }