更新时间:2023-02-26 16:20:47
目前对此并没有内置的功能,你需要使用自定义的方法,是这样的:
There is no built-in functionality for this, you'll need to use a custom method, something like:
TimeSpan ts = new TimeSpan(0, 70, 0);
String.Format("{0} hour{1} {2} minute{3}",
ts.Hours,
ts.Hours == 1 ? "" : "s",
ts.Minutes,
ts.Minutes == 1 ? "" : "s")