qt5base-lts/tests/auto/corelib/tools
Edward Welbourne 80853afd73 Add startOfDay() and endOfDay() methods to QDate
These methods give the first and last QDateTime values in the given
day, for a given time-zone or time-spec.  These are usually the
relevant midnight, or the millisecond before, except when time-zone
transitions (typically DST changes) skip it, when care is needed to
select the right moment.  Adapted some code to make use of the new
API, eliminating some old cruft from qdatetimeparser_p.h in the
process.

[ChangeLog][QtCore][QDate] Added startOfDay() and endOfDay() methods
to provide a QDateTime at the start and end of a given date, taking
account of any time skipped by transitions, e.g. a DST spring-forward,
which can lead to a day starting at 01:00 or ending just before 23:00.

Task-number: QTBUG-64485
Change-Id: I3dd7a34bedfbec8f8af00c43d13f50f99346ecd0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2019-04-24 13:09:26 +00:00
..
collections Replace qMove with std::move 2019-04-06 11:00:38 +00:00
containerapisymmetry Non-associative containers: add range constructors 2019-04-17 08:11:21 +00:00
qalgorithms
qarraydata Remove handling of missing very old compiler feature check 2019-04-06 13:27:15 +00:00
qarraydata_strictiterators
qbitarray
qbytearray Remove handling of missing very old compiler feature check 2019-04-06 13:27:15 +00:00
qbytearraylist Replace qMove with std::move 2019-04-06 11:00:38 +00:00
qbytearraymatcher
qbytedatabuffer
qcache
qchar
qcollator Handle QCollator with locale C by delegating to QString 2018-12-11 19:05:07 +00:00
qcommandlineparser QCommandLineParser: warn if defining a duplicate option 2019-04-04 13:33:50 +00:00
qcontiguouscache Replace qMove with std::move 2019-04-06 11:00:38 +00:00
qcryptographichash
qdate Add startOfDay() and endOfDay() methods to QDate 2019-04-24 13:09:26 +00:00
qdatetime Purge use of some deprecated methods from QDateTime tests 2019-04-23 17:31:21 +00:00
qeasingcurve QEasyingCurve: fix data stream operators 2019-04-06 21:12:40 +00:00
qexplicitlyshareddatapointer
qfreelist
qhash
qhash_strictiterators
qhashfunctions
qlatin1string
qline
qlinkedlist
qlist
qlist_strictiterators
qlocale Merge remote-tracking branch 'origin/5.12' into 5.13 2019-04-02 01:00:26 +02:00
qmacautoreleasepool Add missing dependencies for tst_qmacautoreleasepool 2018-08-29 02:47:45 +00:00
qmakearray corelib/tools: add qMakeArray() API 2018-07-25 06:57:44 +00:00
qmap
qmap_strictiterators
qmargins
qmessageauthenticationcode
qoffsetstringarray corelib/tools: Fix auto detection of QOffsetStringArray::m_offset type 2018-08-28 14:42:46 +00:00
qpair core: Add deduction guides for QPair 2019-03-25 19:48:29 +00:00
qpoint
qpointf Fix regression in QPointF::operator== 2018-07-09 15:38:31 +00:00
qqueue
qrect
qregexp
qregularexpression QRegularExpression: anchor wildcard pattern 2018-12-15 13:24:16 +00:00
qringbuffer
qscopedpointer
qscopedvaluerollback Use move more consistently in QScopedValueRollback 2019-03-27 07:56:15 +00:00
qscopeguard Introduce QScopeGuard 2018-07-21 17:47:35 +00:00
qset
qsharedpointer Remove handling of missing very old compiler feature check 2019-04-06 13:27:15 +00:00
qsize
qsizef
qstl
qstring Remove handling of missing very old compiler feature check 2019-04-06 13:27:15 +00:00
qstring_no_cast_from_bytearray
qstringapisymmetry
qstringbuilder
qstringiterator
qstringlist Non-associative containers: add range constructors 2019-04-17 08:11:21 +00:00
qstringmatcher QStringMatcher: add QStringView support 2019-03-14 04:48:06 +00:00
qstringref
qstringview QStringView: Add compare() member function 2018-07-13 13:32:34 +00:00
qtextboundaryfinder
qtime Use the QTime API less clumsily 2019-04-01 14:39:34 +00:00
qtimeline Extend blacklisting of qtimeline::frameRate to macOS 10.13 2018-09-24 21:13:00 +00:00
qtimezone Merge remote-tracking branch 'origin/5.13' into dev 2019-04-10 08:16:20 +02:00
qvarlengtharray
qvector QVector: Add assignment from std::initializer_list 2019-03-21 15:53:52 +00:00
qvector_strictiterators
qversionnumber Replace qMove with std::move 2019-04-06 11:00:38 +00:00
tools.pro Add missing test to project file 2019-04-02 12:43:06 +00:00