Example #1
0
 /// <summary>
 /// Convert <see cref="DateTimeSpan"/> to <see cref="Duration"/>.<br />
 /// 将 DateTimeSpan 转换为 Duration。
 /// </summary>
 /// <param name="ts"></param>
 /// <returns></returns>
 public static Duration AsDuration(this DateTimeSpan ts) => Duration.FromTimeSpan(ts);