[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-edu
Subject:    [kde-edu]: QDate in 4.2 - close but no cigar...
From:       John Layt <johnlayt1 () yahoo ! co ! nz>
Date:       2006-09-09 11:28:09
Message-ID: 200609092328.09583.johnlayt1 () yahoo ! co ! nz
[Download RAW message or body]

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...

John.

--

Send instant messages to your online friends http://au.messenger.yahoo.com 
_______________________________________________
kde-edu mailing list
kde-edu@mail.kde.org
https://mail.kde.org/mailman/listinfo/kde-edu
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic