共用方式為


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 經過時間。

適用於