Edytuj

Udostępnij za pośrednictwem


TimeOnly.Subtraction(TimeOnly, TimeOnly) Operator

Definition

Gives the elapsed time between two points on a circular clock, which will always be a positive value.

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

Parameters

t1
TimeOnly

The first TimeOnly instance.

t2
TimeOnly

The second TimeOnly instance..

Returns

The elapsed time between t1 and t2.

Applies to