path: root/src/corelib/tools/qdatetime_p.h
diff options
authorJohn Layt <>2013-08-09 00:14:38 +0200
committerThe Qt Project <>2013-09-14 18:31:00 +0200
commite76c312eb84cb5d9971b024c411472dda4bbf8aa (patch)
treebca848d42af36d7858bbf1acefbc88e6e9496b87 /src/corelib/tools/qdatetime_p.h
parentf6e6dde369be8428b074c7135096b73248bdc8ae (diff)
QDateTime - Switch to using msecs based functions
A number of QDateTime functions directly use or modify the data stored in the private, but future changes to store msecs and status make this maintenance more complicated. Where possible simplify this code to use the standard msecs functions, standard constructors, or public api instead. This greatly simplifies the functions and the following msecs storage code changes. This is an intermim step towards storing the time in msecs. Some functions will be slower as a result of this change, optimization will take place after all the msecs changes are completed. Note this also removes a test that used valid QDates outside the range of msecs, this change in behavior will be documented in the final mscs change. Change-Id: I6ef710f24babc7024091010064082e9be0b5bbfe Reviewed-by: Lars Knoll <> Reviewed-by: Mitch Curtis <> Reviewed-by: Thiago Macieira <>
Diffstat (limited to 'src/corelib/tools/qdatetime_p.h')
1 files changed, 0 insertions, 2 deletions
diff --git a/src/corelib/tools/qdatetime_p.h b/src/corelib/tools/qdatetime_p.h
index d466637eb0..f765403d37 100644
--- a/src/corelib/tools/qdatetime_p.h
+++ b/src/corelib/tools/qdatetime_p.h
@@ -82,8 +82,6 @@ public:
// Get current date/time in UTC and put result in outDate and outTime
void getUTC(QDate &outDate, QTime &outTime) const;
- // Add msecs to given datetime and return result
- static QDateTime addMSecs(const QDateTime &dt, qint64 msecs);
// Add msecs to given datetime and put result in utcDate and utcTime
static void addMSecs(QDate &utcDate, QTime &utcTime, qint64 msecs);