Kstars
kstarsdatetime.h
188 BESSELIAN, /**< Besselian epoch (see http://scienceworld.wolfram.com/astronomy/BesselianEpoch.html) */
195 *@note The definition of Julian Epoch used here comes from http://scienceworld.wolfram.com/astronomy/JulianEpoch.html
KStarsDateTime()
Default constructor Creates a date/time at J2000 (noon on Jan 1, 200)
Definition: kstarsdatetime.cpp:16
static KStarsDateTime currentDateTime()
Definition: kstarsdatetime.cpp:73
Extension of QDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day,...
Definition: kstarsdatetime.h:35
KStarsDateTime addDays(int nd) const
Modify the Date/Time by adding a number of days.
Definition: kstarsdatetime.h:110
TimeSpec
@ BESSELIAN
Besselian epoch (see http://scienceworld.wolfram.com/astronomy/BesselianEpoch.html)
Definition: kstarsdatetime.h:188
static KStarsDateTime fromString(const QString &s)
Definition: kstarsdatetime.cpp:91
static KStarsDateTime currentDateTimeUtc()
Definition: kstarsdatetime.cpp:82
constexpr static const double B1900
The following values were obtained from Eric Weisstein's world of science: http://scienceworld....
Definition: kstarsdatetime.h:250
void setTime(const QTime &t)
Assign the Time according to a QTime object.
Definition: kstarsdatetime.cpp:161
bool setFromEpoch(double e, EpochType type)
Set the Date/Time from an epoch value, represented as a double.
Definition: kstarsdatetime.cpp:236
double epoch() const
This is (approximately) the year expressed as a floating-point value.
Definition: kstarsdatetime.h:197
static double jdToEpoch(long double jd, EpochType type=JULIAN)
Takes in a Julian Date and returns the corresponding epoch year in the given system.
Definition: kstarsdatetime.cpp:269
static double stringToEpoch(const QString &eName, bool &ok)
Takes in a string and returns a Julian epoch.
Definition: kstarsdatetime.cpp:288
void setTimeSpec(Qt::TimeSpec spec)
static long double epochToJd(double epoch, EpochType type=JULIAN)
Takes in an epoch and returns a Julian Date.
Definition: kstarsdatetime.cpp:256
void setDate(const QDate &d)
Assign the Date according to a QDate object.
Definition: kstarsdatetime.cpp:144
@ JULIAN
Julian epoch (see http://scienceworld.wolfram.com/astronomy/JulianEpoch.html)
Definition: kstarsdatetime.h:187
Qt::TimeSpec timeSpec() const const
QTime GSTtoUT(dms GST) const
Convert a given Greenwich Sidereal Time to Universal Time (=Greenwich Mean Time).
Definition: kstarsdatetime.cpp:206
void setDJD(long double jd)
Assign the static_cast<long double> Julian Day value, which includes the time of day encoded in the f...
Definition: kstarsdatetime.cpp:118
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:55:47 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:55:47 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.