【发布时间】:2010-01-13 17:04:04
【问题描述】:
我想将时间跨度格式化为 49 小时 34 百万 20 秒这样的格式
我使用了下面的字符串格式:
String.Format("{0:00}:{1:00}:{2:00}", theTimeSpan.TotalHours, theTimeSpan.Minutes, theTimeSpan.Seconds)
它将时间跨度格式化为这种格式 49:34:20。如何将 hr mn sec 添加到上面的 String.Format 中?还是有另一种简单的方法?谢谢。
【问题讨论】: