[Kstars-devel] branches/kstars/summer/kstars/kstars
Prakash Mohan
prak902000 at gmail.com
Sat May 9 17:16:07 CEST 2009
SVN commit 965693 by prakash:
We want rise time of sun in the next day, not the same day. Changing that.
CCMAIL: kstars-devel at kde.org
M +1 -4 ksalmanac.cpp
--- branches/kstars/summer/kstars/kstars/ksalmanac.cpp #965692:965693
@@ -58,11 +58,8 @@
//Compute Sun rise and set times
const KStarsDateTime today = dt;
const GeoLocation* _geo = geo;
-// *riseTime = -1.0 * o->riseSetTime( today.djd() + 1.0, geo, true ).secsTo(QTime()) / 86400.0;
-// *setTime = -1.0 * o->riseSetTime( today.djd(), geo, false ).secsTo(QTime()) / 86400.0;
- *riseTime = -1.0 * o->riseSetTime( today, _geo, true ).secsTo(QTime()) / 86400.0;
+ *riseTime = -1.0 * o->riseSetTime( today.addDays(1), _geo, true ).secsTo(QTime()) / 86400.0;
*setTime = -1.0 * o->riseSetTime( today, _geo, false ).secsTo(QTime()) / 86400.0;
-
//check to see if Sun is circumpolar
//requires temporary repositioning of Sun to target date
KSNumbers *num = new KSNumbers( dt.djd() );
More information about the Kstars-devel
mailing list