System::DateTime::Equals メソッド

DateTime::Equals(DateTime) const method

指定された DateTime クラスのインスタンスが現在のオブジェクトと同じ日付と時刻の値を表すかどうかを判定します。

bool System::DateTime::Equals(DateTime other) const
パラメーター説明
otherDateTime現在のオブジェクトと比較するための DateTime クラスのインスタンス

ReturnValue

other と現在のオブジェクトの両方が同じ値を表す場合は true、そうでなければ false

参照

DateTime::Equals(DateTime, DateTime) method

指定された DateTime クラスのインスタンスが同じ日付と時刻の値を表すかどうかを判定します。

static constexpr bool System::DateTime::Equals(DateTime t1, DateTime t2)
パラメーター説明
t1DateTime最初の比較対象
t2DateTime2 番目の比較対象

ReturnValue

t1t2 の両方が同じ値を表す場合は true、そうでなければ false

参照