Qt 4.8
|
#include <qdatetime_p.h>
Public Types | |
enum | Spec { LocalUnknown = -1, LocalStandard = 0, LocalDST = 1, UTC = 2, OffsetFromUTC = 3 } |
Public Functions | |
Spec | getLocal (QDate &outDate, QTime &outTime) const |
void | getUTC (QDate &outDate, QTime &outTime) const |
QDateTimePrivate () | |
QDateTimePrivate (const QDateTimePrivate &other) | |
Static Public Functions | |
static QDateTime | addMSecs (const QDateTime &dt, qint64 msecs) |
static void | addMSecs (QDate &utcDate, QTime &utcTime, qint64 msecs) |
Adds msecs to utcDate and utcTime as appropriate. More... | |
Public Variables | |
QDate | date |
QAtomicInt | ref |
Spec | spec |
QTime | time |
int | utcOffset |
The offset in seconds. More... | |
Definition at line 79 of file qdatetime_p.h.
Enumerator | |
---|---|
LocalUnknown | |
LocalStandard | |
LocalDST | |
UTC | |
OffsetFromUTC |
Definition at line 82 of file qdatetime_p.h.
|
inline |
Definition at line 84 of file qdatetime_p.h.
|
inline |
Definition at line 85 of file qdatetime_p.h.
Definition at line 2814 of file qdatetime.cpp.
Referenced by QDateTime::addMSecs(), and QDateTime::addSecs().
Adds msecs to utcDate and utcTime as appropriate.
It is assumed that utcDate and utcTime are adjusted to UTC.
Definition at line 2832 of file qdatetime.cpp.
QDateTimePrivate::Spec QDateTimePrivate::getLocal | ( | QDate & | outDate, |
QTime & | outTime | ||
) | const |
Definition at line 4413 of file qdatetime.cpp.
Referenced by QDateTime::setMSecsSinceEpoch(), QDateTime::setTime_t(), and QDateTime::toTimeSpec().
Definition at line 4422 of file qdatetime.cpp.
Referenced by addMSecs(), QDateTime::msecsTo(), QDateTime::operator<(), QDateTime::operator==(), QDateTime::secsTo(), QDateTime::toMSecsSinceEpoch(), and QDateTime::toTimeSpec().
QDate QDateTimePrivate::date |
Definition at line 90 of file qdatetime_p.h.
Referenced by QDateTime::addDays(), QDateTime::addMonths(), QDateTime::addYears(), QDateTime::currentMSecsSinceEpoch(), QDateTime::date(), QDateTime::daysTo(), QDateTime::isNull(), QDateTime::isValid(), QDateTime::operator<(), QDateTime::operator==(), QDateTime::QDateTime(), QDateTime::setDate(), QDateTime::setMSecsSinceEpoch(), QDateTime::setTime_t(), QDateTime::toString(), and QDateTime::toTimeSpec().
QAtomicInt QDateTimePrivate::ref |
Definition at line 89 of file qdatetime_p.h.
Spec QDateTimePrivate::spec |
Definition at line 92 of file qdatetime_p.h.
Referenced by QDateTime::currentMSecsSinceEpoch(), QDateTime::operator<(), QDateTime::operator==(), QDateTime::QDateTime(), QDateTime::setDate(), QDateTime::setMSecsSinceEpoch(), QDateTime::setTime(), QDateTime::setTime_t(), QDateTime::setTimeSpec(), QDateTime::setUtcOffset(), QDateTime::timeSpec(), QDateTime::toString(), QDateTime::toTimeSpec(), and QDateTime::utcOffset().
QTime QDateTimePrivate::time |
Definition at line 91 of file qdatetime_p.h.
Referenced by QDateTime::addDays(), QDateTime::addMonths(), QDateTime::addYears(), QDateTime::currentMSecsSinceEpoch(), QDateTime::isNull(), QDateTime::isValid(), QDateTime::operator<(), QDateTime::operator==(), QDateTime::QDateTime(), QDateTime::setDate(), QDateTime::setMSecsSinceEpoch(), QDateTime::setTime(), QDateTime::setTime_t(), QDateTime::time(), QDateTime::toString(), and QDateTime::toTimeSpec().
int QDateTimePrivate::utcOffset |
The offset in seconds.
Applies only when timeSpec() is OffsetFromUTC.
Definition at line 102 of file qdatetime_p.h.
Referenced by QDateTime::operator==(), QDateTime::setUtcOffset(), QDateTime::toString(), and QDateTime::utcOffset().