summaryrefslogtreecommitdiffstats
path: root/src/corelib/time/qdatetime_p.h
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-02-18 17:24:18 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2021-04-16 10:22:27 +0200
commitb4a875544ba8f2d11e183d67f45891d6149203ed (patch)
tree0aa1ad44a4594e36bbb32b55ced0e8201d49a3dd /src/corelib/time/qdatetime_p.h
parent455994c2eef28ca4ed6d52103af47364e4145555 (diff)
Extend time_t-based handling all the way to the end of time_t
At least some modern 64-bit systems have widened time_t to 64 bits fixing the "Unix time" problem. (This is even the default on MS-Win, although the system functions artificially limit the accepted range to 1970 through 3000.) Even the 32-bit range extends into January 2038 but the code was artificially cutting this off at the end of 2037. This is a preparation for using the same also all the way back to the start of time_t. In the process, simplify and tidy up the logic of the existing code, update the docs (this includes correcting some misinformation) and revise some tests. Fixes: QTBUG-73225 Change-Id: Ib8001b5a982386c747eda3dea2b5a26eedd499ad Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/time/qdatetime_p.h')
0 files changed, 0 insertions, 0 deletions