[Kstars-devel] ExtDate class
Jason Harris
kstars at 30doradus.org
Sun Jan 25 05:27:43 CET 2004
Hello,
Michel Guitel has graciously contributed the ExtDate class which can
hold arbitrarily remote dates, unlike QDate. It stores the date as the
Julian Day number, and uses conversion code to translate the JD number
to calendar dates. He includes a test program that demonstrates that
ExtDate and QDate agree over the range of dates for which QDate is
valid. I have attached his code to this message.
At this point, ExtDate stores the Julian Day as an int, but it should be
quite easy to change this to a long double so it can encode the time as
well as the date. We should also (eventually) come up with ExtDate-
aware replacements for KDatePicker and KDateEdit/QDateEdit.
Thank you for the contribution, Michel! This is something we have
talked about adding for a long while.
regards,
Jason
--
KStars: A KDE Planetarium
http://edu.kde.org/kstars
-------------- next part --------------
A non-text attachment was scrubbed...
Name: extdate.tgz
Type: application/x-tgz
Size: 5616 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kstars-devel/attachments/20040124/2b4e0e9d/extdate.bin
More information about the Kstars-devel
mailing list