TimeOnly.Subtraction(TimeOnly, TimeOnly) 操作员

定义

提供循环时钟上两点之间的已用时间,该时间始终为正值。

public:
 static TimeSpan operator -(TimeOnly t1, TimeOnly t2);
public static TimeSpan operator - (TimeOnly t1, TimeOnly t2);
static member ( - ) : TimeOnly * TimeOnly -> TimeSpan
Public Shared Operator - (t1 As TimeOnly, t2 As TimeOnly) As TimeSpan

参数

t1
TimeOnly

第一个 TimeOnly 实例。

t2
TimeOnly

第二个 TimeOnly 实例。

返回

t2之间的t1已用时间。

适用于