QDate range extended
Thiago Macieira
thiago at kde.org
Wed Jun 14 08:12:27 BST 2006
Jason Harris wrote:
>Since David brought it up...if the -4712 limit is essentially arbitrary,
> I'd like to request that it be removed. I guess I've made my case
> before for wanting very remote dates in KStars. I understand that most
> other apps won't need a larger range of years, but if there's nothing
> stopping you from providing a much larger range of years, then why not
> do it?
-4712 is not arbitrary. And I thought you would be the first to realise
what year that is: QDate allows you to go as far back as julian day 0.
You cannot go even more backwards because QDate has an *unsigned* int as
its only member. So the earliest it can see is julian day 0.
Are you sure all the internal computations you have in KStars are valid
from the time of the dinosaurs until the Sun being no more?
(In fact, does KStars account for the Sun's eventual expansion to a red
giant?)
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
thiago.macieira (AT) trolltech.com Trolltech ASA
GPG: 0x6EF45358 | Sandakerveien 116,
E067 918B B660 DBD1 105C | NO-0402
966C 33F5 F005 6EF4 5358 | Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060614/40ed011b/attachment.sig>
More information about the kde-core-devel
mailing list