System::TimeSpan::Compare método

TimeSpan::Compare method

Compara dos objetos TimeSpan.

static constexpr int System::TimeSpan::Compare(TimeSpan t1, TimeSpan t2)
ParámetroTipoDescripción
t1TimeSpanEl primer comparando
t2TimeSpanEl segundo comparando

ReturnValue

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

Ver también