34 #include <QtCore/QString>
35 #include <QtCore/QDateTime>
127 int& nYear,
int& nMonth,
int& nDay,
int& nHour,
int& nMin,
double& dSec);
147 inline SgMJD(
double epoch);
160 inline SgMJD(
int nDay,
double dTime);
171 inline SgMJD(
int nYear,
int nMonth,
int nDay,
int nHour=0,
int nMin=0,
double dSec=0.0);
173 inline SgMJD(
const QDateTime&);
200 inline void setDate(
int nDays);
249 void toYMDHMS_tr(
int& nYear,
int& nMonth,
int& nDay,
int& nHour,
int& nMin,
double& dSec)
const;
270 void setUpEpoch(
int year,
int month,
int day,
int hour,
int min,
double sec);
395 date_ = (int)floor(epoch);
404 date_ = nDay + (int)trunc(dTime);
405 time_ = dTime>=1.0? dTime-trunc(dTime) : dTime;
420 inline SgMJD::SgMJD(
int nYear,
int nMonth,
int nDay,
int nHour,
int nMin,
double dSec)
422 setUpEpoch(nYear, nMonth, nDay, nHour, nMin, dSec);
429 setUpEpoch(d.date().year(), d.date().month(), d.date().day(),
430 d.time().hour(), d.time().minute(), d.time().second() + d.time().msec()/1000.0);
QString interval2Str(double days)
bool operator<(const SgMJD &T1, const SgMJD &T2)
bool operator>=(const SgMJD &T1, const SgMJD &T2)
SgMJD operator+(const SgMJD &T, double dT)
double operator-(const SgMJD &T1, const SgMJD &T2)
bool operator>(const SgMJD &T1, const SgMJD &T2)
bool operator<=(const SgMJD &T1, const SgMJD &T2)
#define DAY2SEC
radians to mas:
friend bool operator<(const SgMJD &T1, const SgMJD &T2)
SgMJD & operator=(const SgMJD &T)
friend bool operator>=(const SgMJD &T1, const SgMJD &T2)
QString dayOfWeek2LongStr() const
bool fromString(Format format, const QString &str, bool isReset=true)
friend SgMJD operator+(const SgMJD &T, double dT)
void setTime(double dTime)
@ F_FS_LOG
Another version from spoolfile format: 2012.01.20-09:32:00.960.
@ F_SOLVE_SPLFL_LONG
Another version from spoolfile format: 12/01/20 00:02.
@ F_YYYYMMDD
Another format for a date: 02 Apr, 2010.
@ F_yyyymmdd
Date in digits: 2010 04 02.
@ F_YYYYMMDDHHMMSSSS
Long verbose: Fri, the 2nd of Apr, 2010; 17hr 02min 43.6400sec.
@ F_SOLVE_SPLFL_SHORT
Another spoolfile represenation of epoch: 2012.01.20-09:14:28.05.
@ F_DDMonYYYY
Date: 2010 Apr 02.
@ F_ECCDAT
Digits, MJD and seconds : 055288:61363.6400.
@ F_YYYYMMDDDD
Digits, date and seconds: 20100402613636.
@ F_RFC2822
ISO date format realized by Qt (Qt::ISODate)
@ F_SINEX
UNUX seconds: 1270227763.6400.
@ F_VerboseLong
Verbose output: 02 Apr, 2010; 17:02:43.6400.
@ F_SINEX_S
Year: 2010.25.
@ F_YYYYMonDD
Date in digits: 2010.04.02.
@ F_UNIX
Just MJD: 55288.7102.
@ F_YYMonDD
Date, short: 2016Mar01.
@ F_MJD
Field System logs: 2020.195.11:15:34.11.
@ F_YYYYMMDDSSSSSS
Digits: 2010/04/02 17:02:43.
@ F_ISO
SINEX format: 10:092:61364.
@ F_HHMMSS
Just time: 17:02:43.6.
@ F_SOLVE_SPLFL_V2
A spoolfile represenation of epoch: 2012.01.20-09:14:28.
@ F_Simple
Digits: 2010/04/02 17:02:43.6.
@ F_Date
RFC2822 date format realized by Qt (Qt::RFC2822Date)
@ F_SOLVE_SPLFL_V3
Another spoolfile represenation of epoch: 2012.01.20-09:14:28.0.
@ F_SOLVE_SPLFL
That was used in ECC.dat files: 2010.04.02-17.02.
@ F_Year
Date, more shortly: 10Apr02.
@ F_Time
SINEX, short version: 10:092.
@ F_TimeShort
Time, seconds are integer: 17:02:43.
@ F_INTERNAL
Digits, date and time: 20100402.71.
QString className() const
QString toString(Format format=F_Verbose) const
static const char * shortMonthNames_[]
static const char * longWeekdayNames_[]
bool saveIntermediateResults(QDataStream &) const
void toYMDHMS_tr(int &nYear, int &nMonth, int &nDay, int &nHour, int &nMin, double &dSec) const
static const char * shortWeekdayNames_[]
bool operator!=(const SgMJD &T) const
double time_
integer part of the epoch;
bool loadIntermediateResults(QDataStream &)
static int calcDayNumber(int year, int month, int day)
void normalize()
part of the day, in days.
bool operator==(const SgMJD &T) const
int calcDayOfYear() const
static SgMJD currentMJD()
SgMJD & operator-=(double days)
static double calcPartOfDay(int hour, int min, double sec)
int calcDayOfWeek() const
void setUpEpoch(int year, int month, int day, int hour, int min, double sec)
static void MJD_reverse(int date, double time, int &nYear, int &nMonth, int &nDay, int &nHour, int &nMin, double &dSec)
friend double operator-(const SgMJD &T1, const SgMJD &T2)
static const char * longMonthNames_[]
SgMJD & operator+=(double days)
friend bool operator>(const SgMJD &T1, const SgMJD &T2)
QDateTime toQDateTime() const
friend bool operator<=(const SgMJD &T1, const SgMJD &T2)
QString dayOfWeek2Str() const