General Purpose Geodetic Library
SgMJD.h File Reference
#include <math.h>
#include <QtCore/QString>
#include <QtCore/QDateTime>
#include <SgMathSupport.h>

Go to the source code of this file.

Classes

class  SgMJD
 

Functions

double operator- (const SgMJD &T1, const SgMJD &T2)
 
bool operator< (const SgMJD &T1, const SgMJD &T2)
 
bool operator<= (const SgMJD &T1, const SgMJD &T2)
 
bool operator> (const SgMJD &T1, const SgMJD &T2)
 
bool operator>= (const SgMJD &T1, const SgMJD &T2)
 
SgMJD operator+ (const SgMJD &T, double dT)
 
SgMJD operator- (const SgMJD &T, double dT)
 
QString interval2Str (double days)
 

Variables

const SgMJD tEphem
 
const SgMJD tZero
 
const SgMJD tInf
 
const SgMJD tUnix0
 

Function Documentation

◆ interval2Str()

QString interval2Str ( double  days)

Returns a string for time interval

Parameters
days– time interval (usually, difference of two SgMJD epochs) in days.

Definition at line 1370 of file SgMJD.cpp.

References DAY2SEC.

Referenced by SgPlotArea::drawRangeSelector(), SgPlotArea::drawRuler(), main(), SgVlbiSession::putDataIntoVgosDb(), SgSingleSessionTaskManager::run(), SgTaskManager::run(), and NsSessionEditDialog::tab4GeneralInfo().

◆ operator+()

SgMJD operator+ ( const SgMJD T,
double  dT 
)
inline

Returns an epoch shifted by dT in the future.

Definition at line 594 of file SgMJD.h.

◆ operator-() [1/2]

SgMJD operator- ( const SgMJD T,
double  dT 
)
inline

Returns an epoch shifted by dT in the past.

Definition at line 602 of file SgMJD.h.

◆ operator-() [2/2]

double operator- ( const SgMJD T1,
const SgMJD T2 
)
inline

Returns a difference of two epochs.

Definition at line 546 of file SgMJD.h.

◆ operator<()

bool operator< ( const SgMJD T1,
const SgMJD T2 
)
inline

◆ operator<=()

bool operator<= ( const SgMJD T1,
const SgMJD T2 
)
inline

Compares T1 and T2.

Definition at line 564 of file SgMJD.h.

◆ operator>()

bool operator> ( const SgMJD T1,
const SgMJD T2 
)
inline

Compares T1 and T2.

Definition at line 574 of file SgMJD.h.

◆ operator>=()

bool operator>= ( const SgMJD T1,
const SgMJD T2 
)
inline

Compares T1 and T2.

Definition at line 584 of file SgMJD.h.

Variable Documentation

◆ tEphem

const SgMJD tEphem
extern

◆ tInf

const SgMJD tInf
extern

◆ tUnix0

const SgMJD tUnix0
extern

◆ tZero

const SgMJD tZero
extern