Compatibility Members for QDateTime

以下成员源于类 QDateTime are part of the Qt compatibility layer. We advise against using them in new code.

公共函数

void setTime_t (uint secsSince1Jan1970UTC , Qt::TimeSpec spec )

静态公共成员

QDateTime currentDateTime (Qt::TimeSpec spec )

成员函数文档编制

[static] QDateTime QDateTime:: currentDateTime ( Qt::TimeSpec spec )

使用 currentDateTime () overload that takes no parameters instead.

void QDateTime:: setTime_t ( uint secsSince1Jan1970UTC , Qt::TimeSpec spec )

Use the single-argument overload of setTime_t () 代替。