qt5base-lts/src
John Layt 18322bfabc QDateTime - Change date/time storage to msecs
Change from storing the date and time as QDate and QTime to a serialised
msecs format.  This format is a direct translation of the QDate and
QTime values, it is not the actual msecs since the Unix epoch.  This
msecs format ensures we are always able to recreate the original QDate
and QTime values, but should still simplify the code and improve
performance.

Because we no longer store the explicit date and time we need to store
their isNull()/isValid() status separately.

The changes in storage results in the same memory footprint as before.

Note that this change does not optimize the code nor set out to fix the
known bugs, it only seeks to maintain the current behavior, although
some bugs are fixed implicitly.  More bug fixes and optimizations will
follow.

[ChangeLog][Important Behavior Changes] The supported date range in
QDateTime has been reduced to about +/- 292 million years, the range
supported by the number of msecs since the Unix epoch of 1 Jan 1970
as stored in a qint64, and as able to be used in the
setMSecsSinceEpoch() and toMSecsSinceEpoch() methods.

Change-Id: I98804d8781909555d3313a3a7080eb8e70cb46ad
Reviewed-by: Sérgio Martins <sergio.martins@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2013-09-20 23:45:06 +02:00
..
3rdparty libpng: Add WinRT compatibility 2013-09-20 13:54:16 +02:00
android Android: handle inverted orientations 2013-09-20 12:02:58 +02:00
angle ANGLE: Update to version 2446 2013-09-19 08:53:35 +02:00
concurrent QtConcurrent::Median: add some qMove() 2013-09-13 11:47:06 +02:00
corelib QDateTime - Change date/time storage to msecs 2013-09-20 23:45:06 +02:00
dbus QMetaMethod and QDBusMetaObject: Give public access to signal methods 2013-09-09 16:21:10 +02:00
gui Don't try to allocate a msaa FBO when it is not supported. 2013-09-20 22:00:49 +02:00
network Resolve error caused by server-initiated TLS renegotiation 2013-09-17 23:13:05 +02:00
opengl Fix a memory leak in QGLWidget::renderText 2013-09-20 12:05:45 +02:00
openglextensions Use BSD licensing for QtOpenGLExtensions instead of LGPL 2013-06-24 10:16:32 +02:00
platformsupport test: fix tst_QFont::defaultFamily on Mac OS X 10.8 2013-09-20 23:45:06 +02:00
plugins Add missing implementation in QAccessibleTabBar::indexOfChild 2013-09-20 21:54:44 +02:00
printsupport Check if Print Properties dialog was shown before accessing it 2013-09-20 00:50:36 +02:00
sql Merge remote-tracking branch 'origin/stable' into dev 2013-08-27 22:51:09 +02:00
testlib WinRT: Basic global support 2013-09-20 13:53:59 +02:00
tools qdoc: Documentation for property groups is back 2013-09-18 11:28:28 +02:00
widgets QMessageBox - make it possible to have a checkbox on the dialog 2013-09-20 22:02:00 +02:00
winmain winmain for winrt 2013-09-14 15:42:24 +02:00
xml Doc: Setting module pages' \qtvariable. 2013-08-02 13:35:45 +02:00
src.pro WinRT: Basic global support 2013-09-20 13:53:59 +02:00