Compatibility Members for QDateTime

The following members of class QDateTimeare part of the Qt compatibility layer. We advise against using them in new code.

Public Functions

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

Static Public Members

QDateTime currentDateTime(Qt::TimeSpec spec)

Member Function Documentation

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

Use the currentDateTime() overload that takes no parameters instead.

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

Use the single-argument overload of setTime_t() instead.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.