Méthode System::TimeSpan::Compare

TimeSpan::Compare method

Compare deux objets TimeSpan.

static constexpr int System::TimeSpan::Compare(TimeSpan t1, TimeSpan t2)
ParamètreTypeDescription
t1TimeSpanLe premier comparande
t2TimeSpanLe deuxième comparande

ReturnValue

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

Voir aussi