System::TimeSpan::Compare Methode

TimeSpan::Compare method

Vergleicht zwei TimeSpan‑Objekte.

static constexpr int System::TimeSpan::Compare(TimeSpan t1, TimeSpan t2)
ParameterTypBeschreibung
t1TimeSpanDer erste Operand
t2TimeSpanDer zweite Operand

ReturnValue

-1 if t1 is shorter than t2; 0 if t1 is equal to t2; 1 if t1 is longer than t2

Siehe auch