80853afd73
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> |
||
---|---|---|
.. | ||
collections | ||
containerapisymmetry | ||
qalgorithms | ||
qarraydata | ||
qarraydata_strictiterators | ||
qbitarray | ||
qbytearray | ||
qbytearraylist | ||
qbytearraymatcher | ||
qbytedatabuffer | ||
qcache | ||
qchar | ||
qcollator | ||
qcommandlineparser | ||
qcontiguouscache | ||
qcryptographichash | ||
qdate | ||
qdatetime | ||
qeasingcurve | ||
qexplicitlyshareddatapointer | ||
qfreelist | ||
qhash | ||
qhash_strictiterators | ||
qhashfunctions | ||
qlatin1string | ||
qline | ||
qlinkedlist | ||
qlist | ||
qlist_strictiterators | ||
qlocale | ||
qmacautoreleasepool | ||
qmakearray | ||
qmap | ||
qmap_strictiterators | ||
qmargins | ||
qmessageauthenticationcode | ||
qoffsetstringarray | ||
qpair | ||
qpoint | ||
qpointf | ||
qqueue | ||
qrect | ||
qregexp | ||
qregularexpression | ||
qringbuffer | ||
qscopedpointer | ||
qscopedvaluerollback | ||
qscopeguard | ||
qset | ||
qsharedpointer | ||
qsize | ||
qsizef | ||
qstl | ||
qstring | ||
qstring_no_cast_from_bytearray | ||
qstringapisymmetry | ||
qstringbuilder | ||
qstringiterator | ||
qstringlist | ||
qstringmatcher | ||
qstringref | ||
qstringview | ||
qtextboundaryfinder | ||
qtime | ||
qtimeline | ||
qtimezone | ||
qvarlengtharray | ||
qvector | ||
qvector_strictiterators | ||
qversionnumber | ||
tools.pro |