Replacement for KDateTime

John Layt jlayt at kde.org
Mon Aug 3 22:00:04 BST 2015


On 3 August 2015 at 20:07, David Jarvie <djarvie at kde.org> wrote:

> As I understand it, a QDateTime is invalid if either the date or time
> component is invalid. People would usually expect that if
> QDateTime::isValid() returns false, the object must be invalid. So a
> date-only value in which only the date was valid would make the whole object
> invalid, which is misleading and would almost certainly lead to mistakes.

That is correct and it is a long-standing QDateTime behaviour that I
would hate to change in a non-major release due to the huge amount of
code that expects it to work that way. It's just not an option to use.

John.




More information about the kde-core-devel mailing list