本帖最后由 huangyanling123 于 2012-10-06 21:50:18 编辑

解决方案 »

  1.   

    DateTime dt1,dt2 = DateTime.Now;
    dt1.AddSecond(107653d);
    TimeSpan sp = dt1 - dt2;
    MessageBox.Show(sp.Hours.ToString());
    MessageBox.Show(sp.Minutes.ToString());
    MessageBox.Show(sp.Seconds.ToString());
      

  2.   

    小学数学:
    int sec = 107653;
    int days = sec / 86400;
    int hours = (sec - days * 86400) / 3600;
    int minutes = (sec - days * 86400 - hours * 3600) / 60;
    int seconds = sec - days * 86400 - hours * 3600 - minutes * 60;
    Console.WriteLine("{0}天{1}小时{2}分{3}秒", days, hours, minutes, seconds);
      

  3.   

    int n = 46;
    int week = 46 / 7;
    int day = 46 % 7;
    Console.WriteLine("{0}周零{1}天", week, day);