[kde-edu]: QDate in 4.2 - close but no cigar...

John Layt johnlayt1 at yahoo.co.nz
Sat Sep 9 13:28:09 CEST 2006

Thought Jason might be interested in this, if he hasn't seen it already.  The 
4.2 documentation for QDate (http://doc.trolltech.com/4.2/qdate.html) has the 
following new tidbit:

"A QDate object contains a calendar date, i.e. year, month, and day numbers, 
in the Gregorian calendar (Julian calendar for dates before 15 October 1582)"

There are also toJulianDay() and fromJulianDay() functions.

So could ExtDate be redundant?  Nope:

"Any date before 2 January 4713 B.C. is considered invalid."

Looking in the code, it supports any date from jd 1 onwards, but not before, 
they incorrectly use jd=0 as meaning invalid date.  The trolls went to the 
effort of re-writing large chunks of QDate, but still got it wrong with an 
unnecessary lower limit  :-(  

So ExtDate lives on.  Ah well, at least the rest of KDE will benefit...



Send instant messages to your online friends http://au.messenger.yahoo.com 

More information about the kde-edu mailing list