QDateTime
#include <QtCore/QDateTime>
More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QDateTime
Overview
Public Functions Index
QDateTime () | |
QDateTime (const QDate &) | |
QDateTime (const QDate &, const QTime &, Qt::TimeSpec spec=Qt::LocalTime) | |
QDateTime (const QDateTime &other) | |
~QDateTime () | |
QDateTime | addDays (int days) const |
QDateTime | addMonths (int months) const |
QDateTime | addMSecs (qint64 msecs) const |
QDateTime | addSecs (int secs) const |
QDateTime | addYears (int years) const |
QDate | date () const |
int | daysTo (const QDateTime &) const |
bool | isNull () const |
bool | isValid () const |
qint64 | msecsTo (const QDateTime &) const |
bool | operator!= (const QDateTime &other) const |
bool | operator< (const QDateTime &other) const |
bool | operator<= (const QDateTime &other) const |
QDateTime & | operator= (const QDateTime &other) |
bool | operator== (const QDateTime &other) const |
bool | operator> (const QDateTime &other) const |
bool | operator>= (const QDateTime &other) const |
int | secsTo (const QDateTime &) const |
void | setDate (const QDate &date) |
void | setMSecsSinceEpoch (qint64 msecs) |
void | setTime (const QTime &time) |
void | setTime_t (uint secsSince1Jan1970UTC) |
void | setTimeSpec (Qt::TimeSpec spec) |
void | setUtcOffset (int seconds) |
QTime | time () const |
Qt::TimeSpec | timeSpec () const |
QDateTime | toLocalTime () const |
qint64 | toMSecsSinceEpoch () const |
QString | toString (Qt::DateFormat f=Qt::TextDate) const |
QString | toString (const QString &format) const |
uint | toTime_t () const |
QDateTime | toTimeSpec (Qt::TimeSpec spec) const |
QDateTime | toUTC () const |
int | utcOffset () const |
Static Public Functions Index
QDateTime | currentDateTime () |
QDateTime | currentDateTimeUtc () |
qint64 | currentMSecsSinceEpoch () |
QDateTime | fromMSecsSinceEpoch (qint64 msecs) |
QDateTime | fromString (const QString &s, Qt::DateFormat f=Qt::TextDate) |
QDateTime | fromString (const QString &s, const QString &format) |
QDateTime | fromTime_t (uint secsSince1Jan1970UTC) |
Public Functions
© 2013 Digia Plc and/or its subsidiaries. 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.
Documentation sources may be obtained from www.qt-project.org.
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. Privacy Policy