QDateTime: Store Julian Day as qint64
authorJohn Layt <jlayt@kde.org>
Thu, 25 Aug 2011 06:54:16 +0000 (07:54 +0100)
committerQt by Nokia <qt-info@nokia.com>
Sat, 4 Feb 2012 23:26:07 +0000 (00:26 +0100)
commit8327fa7c11f6c84ccc66be4365ee282a76288788
tree680f7ef682a3beddc90106769664934cacd402c2
parent31b4c5aa05376c2270122679c97a5727dc743d92
QDateTime: Store Julian Day as qint64

Store the QDate Julian Day number as an qint64 instead of uint32 to
enable support for dates before 2 January 4713 BCE.  This changes the
possible date range to be approx 2.5 Quadrillion BC to 2.5 Quadrillion
AD. A qint32 was not used as it only covers 5 million BCE to 5 million
CE which does include Geological or Astronomical time.

The effective supported date range is currently 4800 BCE to 1.4 million
CE due to restrictions in existing conversion formulas.  The effective
range will be extended later with new formulas.

Change-Id: Ib4345369455b31d4edae8c933b7721e76414e914
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
dist/changes-5.0.0
src/corelib/tools/qdatetime.cpp
src/corelib/tools/qdatetime.h
tests/auto/corelib/tools/qdate/tst_qdate.cpp
tests/auto/corelib/tools/qdatetime/tst_qdatetime.cpp