System::DateTime::operator== 方法

DateTime::operator==(DateTime) const method

确定当前对象和指定的 DateTime 对象是否表示相同的日期和时间值。

bool System::DateTime::operator==(DateTime other) const
参数类型描述
otherDateTime用于与当前对象比较的 DateTime 对象

ReturnValue

如果当前对象和指定对象表示相同的日期和时间值,则为 true;否则为 false

另见

DateTime::operator==(std::nullptr_t) const method

bool System::DateTime::operator==(std::nullptr_t) const

另见