Kstars
kstarsdatetime.cpp
42 long double jdFrac = ( _t.hour()-12 + ( _t.minute() + ( _t.second() + _t.msec()/1000.)/60.)/60.)/24.;
46KStarsDateTime::KStarsDateTime(const QDateTime &qdt) : QDateTime(qdt) //, QDateTime::Spec::UTC() )
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition ksnumbers.h:43
Extension of QDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day,...
Definition kstarsdatetime.h:36
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
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
double epoch() const
This is (approximately) the year expressed as a floating-point value.
Definition kstarsdatetime.h:197
QTime GSTtoUT(dms GST) const
Convert a given Greenwich Sidereal Time to Universal Time (=Greenwich Mean Time).
Definition kstarsdatetime.cpp:206
static long double epochToJd(double epoch, EpochType type=JULIAN)
Takes in an epoch and returns a Julian Date.
Definition kstarsdatetime.cpp:256
@ BESSELIAN
Besselian epoch (see http://scienceworld.wolfram.com/astronomy/BesselianEpoch.html)
Definition kstarsdatetime.h:188
@ JULIAN
Julian epoch (see http://scienceworld.wolfram.com/astronomy/JulianEpoch.html)
Definition kstarsdatetime.h:187
static KStarsDateTime fromString(const QString &s)
Definition kstarsdatetime.cpp:91
bool setFromEpoch(double e, EpochType type)
Set the Date/Time from an epoch value, represented as a double.
Definition kstarsdatetime.cpp:236
void setDate(const QDate &d)
Assign the Date according to a QDate object.
Definition kstarsdatetime.cpp:144
static KStarsDateTime currentDateTimeUtc()
Definition kstarsdatetime.cpp:82
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
void setTime(const QTime &t)
Assign the Time according to a QTime object.
Definition kstarsdatetime.cpp:161
static constexpr const double B1900
The following values were obtained from Eric Weisstein's world of science: http://scienceworld....
Definition kstarsdatetime.h:250
static double stringToEpoch(const QString &eName, bool &ok)
Takes in a string and returns a Julian epoch.
Definition kstarsdatetime.cpp:288
const dms reduce() const
return the equivalent angle between 0 and 360 degrees.
Definition dms.cpp:251
QDate fromJulianDay(qint64 jd)
qint64 toJulianDay() const const
void setTimeSpec(Qt::TimeSpec spec)
QDateTime()
QDateTime currentDateTime()
QDateTime currentDateTimeUtc()
QDate date() const const
QDateTime fromString(QStringView string, QStringView format, QCalendar cal)
bool isValid() const const
int offsetFromUtc() const const
void setDate(QDate date)
void setTime(QTime time)
QTime time() const const
Qt::TimeSpec timeSpec() const const
bool isEmpty() const const
QString mid(qsizetype position, qsizetype n) const const
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
double toDouble(bool *ok) const const
TextDate
UTC
int hour() const const
int minute() const const
int msec() const const
int second() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.