QDate range extended

Frans Englich englich at kde.org
Fri Jun 9 14:19:34 BST 2006


On Tuesday 30 May 2006 15:04, Thiago Macieira wrote:
> I have committed a new qt-copy patch that extends the range of QDate, as
> requested on this mailing list a while ago.
>
> I'd like those who requested such a feature to test the new functionality
> and let me know if this is enough for their needs.

I think it would be practical with a mechanism to determine whether a date is 
flagged as invalid because of that it is outside QDate's range, or because 
the date itself is invalid(non-existant date). KDateTime provides 
isTooEarly() and isTooLate(). Yes, this is not specific to or triggered by 
the range-extension.

The reason is that when you have an invalid date, you don't know if it is so 
because of an invalid date(user error, so to speak), or that QDate is 
incapable of representing a valid date(the software is lacking).

A matter for qt-bugs?


Cheers,

		Frans




More information about the kde-core-devel mailing list