void modCalcJD::slotUpdateCalendar() { long double julianDay, modjulianDay; julianDay = KStarsDateTime(DateTimeBox->dateTime()).djd(); showJd( julianDay ); modjulianDay = julianDay - MJD0; showMjd(modjulianDay); }
void modCalcJD::slotUpdateJD() { long double julianDay, modjulianDay; julianDay = KGlobal::locale()->readNumber( JDBox->text() ); KStarsDateTime dt( julianDay ); DateTimeBox->setDateTime( dt.dateTime() ); modjulianDay = julianDay - MJD0; showMjd( modjulianDay ); }
void modCalcJD::slotUpdateJD() { long double julianDay, modjulianDay; julianDay = JDBox->text().toDouble(); KStarsDateTime dt( julianDay ); DateTimeBox->setDateTime( dt); modjulianDay = julianDay - MJD0; showMjd( modjulianDay ); }