Bug 56352 - Allow any date to be calculated
Summary: Allow any date to be calculated
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kstars
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-25 00:41 UTC by Alexander Gran
Modified: 2004-06-06 20:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Gran 2003-03-25 00:41:39 UTC
Version:           0.9.1 (using KDE 3.1.1)
Installed from:     (3.0)
Compiler:          gcc version 2.95.4 20011002 (Debian prerelease)
OS:          Linux (i686) release 2.4.20

It would be nice if kstars could calculated the starts for any given date, not just in the range 19xx-?
Comment 1 Thiago Macieira 2003-03-25 00:55:45 UTC
What do you mean, exactly? If I use the calculator in kstars, it can calculate any 
date in the Gregorian calendar. 
 
It should be noted, however, that the widget is limited by the start of the Gregorian 
era (actually, 160 years after the beginning of the Gregorian Calendar). If you enter 
any date before 15 September 1752 (which is the date of introduction of the 
calendar in the UK), it'll reset to that date. 
Comment 2 Alexander Gran 2003-03-25 09:02:22 UTC
Ahh, I see. 
I didn't think of the limitations of the Calendar. Is there any possibility to use a 
different one, for the ancient data? 
Comment 3 kstars 2003-03-25 15:42:09 UTC
Hi, 
 
Thiago's absolutely right, this is a limitation of the QDate class, which is undefined 
for dates before 1752 and after about 8000.  We have discussed using an additional 
date scheme for more remote dates.  The problem is, it gets very complicated to try 
to continue to use calendar dates.  We will likely try to just use Julian Days for 
remote dates, and leave it to the user to decide how the simple count of days maps 
onto the more complicated calendar system. 
 
BTW, this is covered in the "What Time is it?" section of chapter 2 of the Handbook.  
I know, I know, no one reads documentation ;) 
 
Comment 4 Thiago Macieira 2003-03-25 15:49:47 UTC
I'd just like to take the opportunity to reiterate my disagreement with the 1782 date in 
QDate. The Gregorian calendar was introduced in 4 October 1582 (the next day 
being the 15 October), by Pope Gregory XIII. 
 
If an arbitrary date is to be chosen, the date it was first introduced would suit best. 
Not the date it was introduced in any given country. 
 
Comment 5 kstars 2004-06-06 20:42:56 UTC
This bug has been fixed.  We have written our own date/time classes to replace QDateTime, KDatePicker, KDateEdit, etc.  The replacement classes can be found at kdeedu/libkdeedu/extdate, if anyone is interested.

In KStars, you can now set the date to anything between years -50000 and +50000.  This range may eventually be extended (there's no theoretical limit to the range, but the extrapolation of object positions becomes more and more meaningless at very remote dates).