OHyMoS.NET Class Library

OhTimePoint.compare メソッド 

Compares two OhTimePointImmutable objects aTpa and aTpb. When the time difference of the two objects is less than aEps, then 0 is returned.

二つの時刻 aTpaaTpb の時間差を調べます。 時間差の絶対値が aEps より小さい場合は、実質的に等し いと見なして、0 を返します。aTpaaTpb - aEps より前のときは、-1 を返します。 aTpaaTpb + aEps より後のときは、 +1 を返します。

public static int compare(
   IOhTimePointImmutable aTpa,
   IOhTimePointImmutable aTpb,
   double aEps
);

パラメータ

aTpa
an OhTimePointImmutable value

aTpb
an OhTimePointImmutable value

aEps
a double value

戻り値

an int value

参照

OhTimePoint クラス | OhymosNet 名前空間