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;
        }

 

相关文章:

  • 2022-02-24
  • 2022-12-23
  • 2021-11-26
  • 2021-06-02
  • 2021-12-18
  • 2022-01-05
猜你喜欢
  • 2021-12-06
  • 2022-12-23
  • 2021-12-18
  • 2022-02-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
相关资源
相似解决方案