Qt 4.8
|
#include "qplatformdefs.h"
#include "private/qdatetime_p.h"
#include "qdatastream.h"
#include "qset.h"
#include "qlocale.h"
#include "qdatetime.h"
#include "qregexp.h"
#include "qdebug.h"
#include <qt_windows.h>
#include <time.h>
#include "qfunctions_wince.h"
#include <private/qcore_mac_p.h>
Go to the source code of this file.
Macros | |
#define | QDTPDEBUG if (false) qDebug() |
#define | QDTPDEBUGN if (false) qDebug |
Enumerations | |
enum | { FIRST_YEAR = -4713, FIRST_MONTH = 1, FIRST_DAY = 2, SECS_PER_DAY = 86400, MSECS_PER_DAY = 86400000, SECS_PER_HOUR = 3600, MSECS_PER_HOUR = 3600000, SECS_PER_MIN = 60, MSECS_PER_MIN = 60000, JULIAN_DAY_FOR_EPOCH = 2440588 } |
Functions | |
static QDate | adjustDate (QDate date) |
static void | appendSeparator (QStringList *list, const QString &string, int from, int size, int lastQuote) |
static int | countRepeat (const QString &str, int index, int maxCount) |
Parses the format newFormat. More... | |
static QDate | fixedDate (int y, int m, int d) |
static QString | fmtDateTime (const QString &f, const QTime *dt=0, const QDate *dd=0) |
static int | fromShortMonthName (const QString &monthName) |
static void | getDateFromJulianDay (uint julianDay, int *year, int *month, int *day) |
static QString | getFmtString (const QString &f, const QTime *dt=0, const QDate *dd=0, bool am_pm=false) |
static bool | hasUnquotedAP (const QString &f) |
static uint | julianDayFromDate (int year, int month, int day) |
static uint | julianDayFromGregorianDate (int year, int month, int day) |
static void | localToUtc (QDate &date, QTime &time, int isdst) |
static uint | msecsFromDecomposed (int hour, int minute, int sec, int msec=0) |
QDebug | operator<< (QDebug dbg, const QDate &date) |
QDebug | operator<< (QDebug dbg, const QTime &time) |
QDebug | operator<< (QDebug dbg, const QDateTime &date) |
bool | operator== (const QDateTimeParser::SectionNode &s1, const QDateTimeParser::SectionNode &s2) |
qint64 | toMSecsSinceEpoch_helper (qint64 jd, int msecs) |
static QString | unquote (const QString &str) |
static QDateTimePrivate::Spec | utcToLocal (QDate &date, QTime &time) |
Variables | |
static const int | LowerYear = 1980 |
static const char | monthDays [] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 } |
static const char *const | qt_shortMonthNames [] |
static const int | UpperYear = 2037 |
Definition at line 68 of file qdatetime.cpp.
Referenced by QDateTimeParser::findAmPm(), QDateTimeParser::findMonth(), QDateTimeParser::parse(), QDateTimeParser::parseFormat(), and QDateTimeParser::parseSection().
Definition at line 69 of file qdatetime.cpp.
Referenced by QDateTimeParser::parse(), QDateTimeParser::parseFormat(), and QDateTimeParser::parseSection().
anonymous enum |
Enumerator | |
---|---|
FIRST_YEAR | |
FIRST_MONTH | |
FIRST_DAY | |
SECS_PER_DAY | |
MSECS_PER_DAY | |
SECS_PER_HOUR | |
MSECS_PER_HOUR | |
SECS_PER_MIN | |
MSECS_PER_MIN | |
JULIAN_DAY_FOR_EPOCH |
Definition at line 83 of file qdatetime.cpp.
Definition at line 4205 of file qdatetime.cpp.
Referenced by localToUtc(), and utcToLocal().
|
inlinestatic |
|
inlinestatic |
Parses the format newFormat.
If successful, returns true and sets up the format. Else keeps the old format and returns false.
Definition at line 4749 of file qdatetime.cpp.
Referenced by QDateTimeParser::parseFormat().
|
inlinestatic |
Definition at line 96 of file qdatetime.cpp.
Referenced by QDate::addMonths(), and QDate::addYears().
Definition at line 4133 of file qdatetime.cpp.
Referenced by QDate::toString(), QTime::toString(), and QDateTime::toString().
|
static |
Definition at line 3459 of file qdatetime.cpp.
Referenced by QDateTime::fromString().
|
static |
Definition at line 133 of file qdatetime.cpp.
Referenced by QDate::addMonths(), QDate::addYears(), QDate::day(), QDate::daysInMonth(), QDate::daysInYear(), QDate::getDate(), QDate::julianToGregorian(), QDate::month(), QDateTimeParser::parse(), QDate::toString(), and QDate::year().
|
static |
Definition at line 4026 of file qdatetime.cpp.
Referenced by fmtDateTime().
|
static |
Definition at line 4005 of file qdatetime.cpp.
Referenced by fmtDateTime().
|
static |
Definition at line 113 of file qdatetime.cpp.
Referenced by QDate::currentDate(), QDateTime::currentDateTime(), QDateTime::currentDateTimeUtc(), QDateTime::currentMSecsSinceEpoch(), QDate::dayOfYear(), QDate::gregorianToJulian(), and QDate::setDate().
|
inlinestatic |
Definition at line 103 of file qdatetime.cpp.
Referenced by QDateTime::currentMSecsSinceEpoch(), and julianDayFromDate().
Definition at line 4316 of file qdatetime.cpp.
Referenced by QDateTimePrivate::getUTC().
|
inlinestatic |
Definition at line 3109 of file qdatetime.cpp.
Referenced by QDateTime::currentDateTime(), QDateTime::currentDateTimeUtc(), QDateTime::currentMSecsSinceEpoch(), and QTime::currentTime().
Definition at line 4436 of file qdatetime.cpp.
Definition at line 4442 of file qdatetime.cpp.
Definition at line 4448 of file qdatetime.cpp.
bool operator== | ( | const QDateTimeParser::SectionNode & | s1, |
const QDateTimeParser::SectionNode & | s2 | ||
) |
Definition at line 6137 of file qdatetime.cpp.
Definition at line 2449 of file qdatetime.cpp.
Referenced by localToUtc(), QDateTime::toMSecsSinceEpoch(), and utcToLocal().
Definition at line 4715 of file qdatetime.cpp.
Referenced by appendSeparator(), and QDateTimeParser::parseFormat().
|
static |
Definition at line 4228 of file qdatetime.cpp.
Referenced by QDateTimePrivate::getLocal().
|
static |
Definition at line 4199 of file qdatetime.cpp.
Referenced by adjustDate().
|
static |
Definition at line 173 of file qdatetime.cpp.
Referenced by QDate::daysInMonth(), and QDate::isValid().
|
static |
Definition at line 176 of file qdatetime.cpp.
Referenced by fromShortMonthName(), and QDate::fromString().
|
static |
Definition at line 4203 of file qdatetime.cpp.
Referenced by adjustDate().