TimeOnly.Subtraction(TimeOnly, TimeOnly) Operator
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns
The elapsed time between t1
and t2
.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.