QDate range extended

David Jarvie lists at astrojar.org.uk
Wed Jun 14 09:25:26 BST 2006


On Wed Jun 14  8:13 , Thiago Macieira <thiago at kde.org> sent:

>David Jarvie wrote:
>>I've been changing the KDateTime code to cater for the extended range,
>> but I have noticed that QDate doesn't flag dates 
>> despite the statement in the comments that -4712 is the minimum year
>> value. I suspect that QDate may be capable of representing dates before
>> that year (with negative Julian day numbers), but clarification is
>> needed, and either the comment or the validation code in QDate needs to
>> be changed.
>
>The exact minimum date is Nov 25th, -4713.

I set the date to 5th September -4713, and QDate::isValid() returns true.

--
David Jarvie.
KAlarm author & maintainer.
http://www.astrojar.org.uk/linux/kalarm.html




More information about the kde-core-devel mailing list