General Purpose Geodetic Library
SgMJD Class Reference

#include <SgMJD.h>

Inheritance diagram for SgMJD:
SgObservation SgParameterBreak SgVlbiAuxObservation SgVlbiObservation

Public Types

enum  Format {
  F_Verbose , F_VerboseLong , F_YYYYMMDDHHMMSSSS , F_Simple ,
  F_YYYYMMDDSSSSSS , F_YYYYMMDDDD , F_INTERNAL , F_ECCDAT ,
  F_SOLVE_SPLFL , F_SOLVE_SPLFL_V2 , F_SOLVE_SPLFL_V3 , F_SOLVE_SPLFL_SHORT ,
  F_SOLVE_SPLFL_LONG , F_FS_LOG , F_MJD , F_UNIX ,
  F_SINEX , F_ISO , F_RFC2822 , F_Date ,
  F_DDMonYYYY , F_YYYYMMDD , F_yyyymmdd , F_YYYYMonDD ,
  F_YYMonDD , F_Year , F_SINEX_S , F_Time ,
  F_HHMMSS , F_TimeShort
}
 

Public Member Functions

 SgMJD ()
 
 SgMJD (double epoch)
 
 SgMJD (const SgMJD &MJD)
 
 SgMJD (int nDay, double dTime)
 
 SgMJD (int nYear, int nMonth, int nDay, int nHour=0, int nMin=0, double dSec=0.0)
 
 SgMJD (const QDateTime &)
 
 ~SgMJD ()
 
SgMJDoperator= (const SgMJD &T)
 
int getDate () const
 
double getTime () const
 
void setDate (int nDays)
 
void setTime (double dTime)
 
QDateTime toQDateTime () const
 
QString className () const
 
int calcYear () const
 
int calcMonth () const
 
int calcDay () const
 
int calcDayOfYear () const
 
int calcDayOfWeek () const
 
int calcHour () const
 
int calcMin () const
 
double calcSec () const
 
void toYMDHMS_tr (int &nYear, int &nMonth, int &nDay, int &nHour, int &nMin, double &dSec) const
 
QString dayOfWeek2Str () const
 
QString dayOfWeek2LongStr () const
 
void setUpEpoch (int year, int month, int day, int hour, int min, double sec)
 
QString toString (Format format=F_Verbose) const
 
bool fromString (Format format, const QString &str, bool isReset=true)
 
bool operator== (const SgMJD &T) const
 
bool operator!= (const SgMJD &T) const
 
SgMJDoperator+= (double days)
 
SgMJDoperator-= (double days)
 
double toDouble () const
 
SgMJD toUtc () const
 
SgMJD toLocal () const
 
double gmst () const
 
bool saveIntermediateResults (QDataStream &) const
 
bool loadIntermediateResults (QDataStream &)
 

Static Public Member Functions

static int calcDayNumber (int year, int month, int day)
 
static double calcPartOfDay (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)
 
static SgMJD currentMJD ()
 

Static Protected Attributes

static const char * shortMonthNames_ []
 
static const char * longMonthNames_ []
 
static const char * shortWeekdayNames_ []
 
static const char * longWeekdayNames_ []
 

Private Member Functions

void normalize ()
 part of the day, in days. More...
 

Private Attributes

int date_
 
double time_
 integer part of the epoch; More...
 

Friends

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)
 

Detailed Description

====================================================================================================

Definition at line 58 of file SgMJD.h.

Member Enumeration Documentation

◆ Format

Enumerator
F_Verbose 
F_VerboseLong 

Verbose output: 02 Apr, 2010; 17:02:43.6400.

F_YYYYMMDDHHMMSSSS 

Long verbose: Fri, the 2nd of Apr, 2010; 17hr 02min 43.6400sec.

F_Simple 

Digits: 2010/04/02 17:02:43.6.

F_YYYYMMDDSSSSSS 

Digits: 2010/04/02 17:02:43.

F_YYYYMMDDDD 

Digits, date and seconds: 20100402613636.

F_INTERNAL 

Digits, date and time: 20100402.71.

F_ECCDAT 

Digits, MJD and seconds : 055288:61363.6400.

F_SOLVE_SPLFL 

That was used in ECC.dat files: 2010.04.02-17.02.

F_SOLVE_SPLFL_V2 

A spoolfile represenation of epoch: 2012.01.20-09:14:28.

F_SOLVE_SPLFL_V3 

Another spoolfile represenation of epoch: 2012.01.20-09:14:28.0.

F_SOLVE_SPLFL_SHORT 

Another spoolfile represenation of epoch: 2012.01.20-09:14:28.05.

F_SOLVE_SPLFL_LONG 

Another version from spoolfile format: 12/01/20 00:02.

F_FS_LOG 

Another version from spoolfile format: 2012.01.20-09:32:00.960.

F_MJD 

Field System logs: 2020.195.11:15:34.11.

F_UNIX 

Just MJD: 55288.7102.

F_SINEX 

UNUX seconds: 1270227763.6400.

F_ISO 

SINEX format: 10:092:61364.

F_RFC2822 

ISO date format realized by Qt (Qt::ISODate)

F_Date 

RFC2822 date format realized by Qt (Qt::RFC2822Date)

F_DDMonYYYY 

Date: 2010 Apr 02.

F_YYYYMMDD 

Another format for a date: 02 Apr, 2010.

F_yyyymmdd 

Date in digits: 2010 04 02.

F_YYYYMonDD 

Date in digits: 2010.04.02.

F_YYMonDD 

Date, short: 2016Mar01.

F_Year 

Date, more shortly: 10Apr02.

F_SINEX_S 

Year: 2010.25.

F_Time 

SINEX, short version: 10:092.

F_HHMMSS 

Just time: 17:02:43.6.

F_TimeShort 

Time, seconds are integer: 17:02:43.

Definition at line 61 of file SgMJD.h.

Constructor & Destructor Documentation

◆ SgMJD() [1/6]

SgMJD::SgMJD ( )
inline

A constructor. Creates an empty vector (for I/O purposes or later assignments).

Definition at line 386 of file SgMJD.h.

References date_, and time_.

Referenced by fromString().

◆ SgMJD() [2/6]

SgMJD::SgMJD ( double  epoch)
inline

A constructor. Creates a copy of an object.

Parameters
epoch– a MJD epoch.

Definition at line 395 of file SgMJD.h.

References date_, and time_.

◆ SgMJD() [3/6]

SgMJD::SgMJD ( const SgMJD MJD)
inline

A constructor. Creates a copy of an object.

Parameters
MJD– a MJD epoch.

Definition at line 413 of file SgMJD.h.

References date_, and time_.

◆ SgMJD() [4/6]

SgMJD::SgMJD ( int  nDay,
double  dTime 
)
inline

A constructor. Creates a copy of an object.

Parameters
nDay– number of MJD days;
dTime– fraction part of a day, in days.

Definition at line 404 of file SgMJD.h.

References date_, and time_.

◆ SgMJD() [5/6]

SgMJD::SgMJD ( int  nYear,
int  nMonth,
int  nDay,
int  nHour = 0,
int  nMin = 0,
double  dSec = 0.0 
)
inline

A constructor. Creates a copy of an object.

Parameters
nYear– year of the date;
nMonth– month of the date;
nDay– day of the date;
nHour– hours;
nMin– minutes;
dSec– seconds.

Definition at line 422 of file SgMJD.h.

References setUpEpoch().

◆ SgMJD() [6/6]

SgMJD::SgMJD ( const QDateTime &  d)
inline

Definition at line 429 of file SgMJD.h.

References setUpEpoch().

◆ ~SgMJD()

SgMJD::~SgMJD ( )
inline

A destructor. Frees allocated memory.

Definition at line 438 of file SgMJD.h.

Member Function Documentation

◆ calcDay()

int SgMJD::calcDay ( ) const

Calculates and returns a day of the epoch.

Definition at line 226 of file SgMJD.cpp.

References date_, MJD_reverse(), and time_.

◆ calcDayNumber()

int SgMJD::calcDayNumber ( int  year,
int  month,
int  day 
)
static

Calculates MJDay number for particular date.

Parameters
year– a year of the epoch;
month– a month of the epoch;
day– a day of the epoch.

Definition at line 51 of file SgMJD.cpp.

Referenced by calcDayOfYear(), fromString(), and setUpEpoch().

◆ calcDayOfWeek()

int SgMJD::calcDayOfWeek ( ) const

Calculates and returns day of a week.

Definition at line 245 of file SgMJD.cpp.

References date_.

Referenced by dayOfWeek2LongStr(), and dayOfWeek2Str().

◆ calcDayOfYear()

int SgMJD::calcDayOfYear ( ) const

◆ calcHour()

int SgMJD::calcHour ( ) const
inline

Calculates and returns an hour of the time.

Definition at line 495 of file SgMJD.h.

References DAY2SEC, and time_.

Referenced by calcMin(), calcSec(), SgVlbiSession::getDataFromDbhImage(), SgVlbiSession::getDataFromVgosDb(), and SgVlbiSession::processKombFile().

◆ calcMin()

int SgMJD::calcMin ( ) const
inline

Calculates and returns a minute of the time.

Definition at line 502 of file SgMJD.h.

References calcHour(), DAY2SEC, and time_.

Referenced by calcSec(), SgVlbiSession::getDataFromDbhImage(), SgVlbiSession::getDataFromVgosDb(), and SgVlbiSession::processKombFile().

◆ calcMonth()

int SgMJD::calcMonth ( ) const

Calculates and returns a month of the epoch.

Definition at line 215 of file SgMJD.cpp.

References date_, MJD_reverse(), and time_.

◆ calcPartOfDay()

double SgMJD::calcPartOfDay ( int  hour,
int  min,
double  sec 
)
static

Calculates part of the day that is corresponding to given hour, min and sec.

Parameters
hour– an hour;
min– a number of minutes;
sec– seconds.

Definition at line 41 of file SgMJD.cpp.

References DAY2SEC.

Referenced by setUpEpoch().

◆ calcSec()

double SgMJD::calcSec ( ) const
inline

Calculates and returns a second of the time.

Definition at line 509 of file SgMJD.h.

References calcHour(), calcMin(), DAY2SEC, and time_.

Referenced by SgVlbiSession::getDataFromDbhImage(), and SgVlbiSession::getDataFromVgosDb().

◆ calcYear()

int SgMJD::calcYear ( ) const

◆ className()

QString SgMJD::className ( ) const
inline

Returns name of the class (for debug output).

Definition at line 488 of file SgMJD.h.

Referenced by dayOfWeek2LongStr(), dayOfWeek2Str(), loadIntermediateResults(), and saveIntermediateResults().

◆ currentMJD()

SgMJD SgMJD::currentMJD ( )
static

Retuns an object that contains current epoch.

Definition at line 118 of file SgMJD.cpp.

Referenced by NsMainWindow::NsMainWindow(), SgGuiVlbiHistory::addHistoryLine(), SgVgosDb::composeHistoryBlock(), SgAgvDriver::exportData(), SgAgvTextSection::exportData(), SgAgvTocsSection::exportData(), SgAgvDataSection::exportData(), SgAgvChunk::exportData(), NsSessionHandler::exportDataIntoDbh(), SgVlbiSession::exportDataIntoNgsFile(), NsSessionHandler::exportDataIntoVgosDb(), SgAgvPreaSection::fillDataStructures(), SgEstimator::finisRun(), SgVlbiSession::getDataFromAgvFile(), SgVlbiSession::getDataFromDbhImage(), SgVlbiSession::getDataFromDbhImages(), SgVlbiSession::getDataFromKombFiles(), SgVlbiSession::getDataFromVgosDb(), SgAgvDriver::importData(), SgAgvSection::importData(), SgAgvPreaSection::importData(), SgAgvTextSection::importData(), SgAgvTocsSection::importData(), SgAgvDataSection::importData(), SgAgvChunk::importData(), SgVlbiHistory::importDbhHistoryBlock(), SgAgvDriver::initSession(), NsSessionHandler::inquireCat(), SgVgosDb::loadHistory(), NsSessionEditDialog::loadIntermediateResults(), main(), SgVlbiSession::makeHistory(), SgVlbiSession::makeHistoryIntro(), VcCalc2SessionIfc::mimic_pHist(), NsSessionHandler::notifyCat(), SgEstimator::processConstraint(), SgEstimator::processObs(), SgVlbiSession::putDataIntoAgvFile(), SgVlbiSession::putDataIntoDbhImage(), SgVlbiSession::putDataIntoVgosDb(), SgSolutionReporter::report2aposterioriFiles(), SgSolutionReporter::report2spoolFile(), SgSingleSessionTaskManager::run(), SgTaskManager::run(), NsSessionEditDialog::saveIntermediateResults(), SgNetCdf::setServiceVars(), SgVgosDb::setupFormat(), SgEstimator::solveStochasticParameters(), and SgLogger::write().

◆ dayOfWeek2LongStr()

QString SgMJD::dayOfWeek2LongStr ( ) const

Returns a day of a week in a (long) literal form.

Definition at line 1212 of file SgMJD.cpp.

References calcDayOfWeek(), className(), date_, SgLogger::ERR, logger, longWeekdayNames_, SgLogger::TIME, and SgLogger::write().

◆ dayOfWeek2Str()

QString SgMJD::dayOfWeek2Str ( ) const

Returns a day of a week in a literal form (3 chars abbr).

Definition at line 1195 of file SgMJD.cpp.

References calcDayOfWeek(), className(), date_, SgLogger::ERR, logger, shortWeekdayNames_, SgLogger::TIME, and SgLogger::write().

Referenced by toString().

◆ fromString()

bool SgMJD::fromString ( Format  format,
const QString &  str,
bool  isReset = true 
)

◆ getDate()

◆ getTime()

◆ gmst()

double SgMJD::gmst ( ) const

Definition at line 1263 of file SgMJD.cpp.

References date_, DAY2SEC, tEphem, and time_.

Referenced by NsScrPrx4VlbiObservation::getGmst().

◆ loadIntermediateResults()

bool SgMJD::loadIntermediateResults ( QDataStream s)

◆ MJD_reverse()

void SgMJD::MJD_reverse ( int  date,
double  time,
int &  nYear,
int &  nMonth,
int &  nDay,
int &  nHour,
int &  nMin,
double &  dSec 
)
static

Converts date and time into human readable representation of the epoch for the given MJD.

Parameters
date– MJD number (input);
time– part of the day (input);
nYear– year (output);
nMonth– month (output);
nDay– day (output);
nHour– hours (output);
nMin– minutes (output);
dSec– seconds (output);

Definition at line 74 of file SgMJD.cpp.

References DAY2SEC.

Referenced by SgGuiVlbiStnClockBreakEditor::SgGuiVlbiStnClockBreakEditor(), calcDay(), calcMonth(), calcYear(), SgVlbiSession::exportDataIntoNgsFile(), SgVlbiSession::getDataFromVgosDb(), SgAgvDriver::initSession(), SgVlbiSession::putDataIntoDbhImage(), SgSolutionReporter::reportAtmo(), SgSolutionReporter::reportCloc(), SgSolutionReporter::reportGeneralStatsBlock_Output4Spoolfile(), SgSolutionReporter::reportIdentitiesBlock_Output4Spoolfile(), SgSolutionReporter::reportStations_Output4AposterioriFiles(), SgDbhServiceRecordHS1::setHistoryEpoch(), toLocal(), toQDateTime(), toString(), toUtc(), and toYMDHMS_tr().

◆ normalize()

void SgMJD::normalize ( )
private

part of the day, in days.

Adjust time_ and date_ parts to keep 0<=time_<=1.

Definition at line 134 of file SgMJD.cpp.

References date_, and time_.

Referenced by fromString(), operator+=(), operator-=(), setTime(), and setUpEpoch().

◆ operator!=()

bool SgMJD::operator!= ( const SgMJD T) const
inline

Compares the object with another one.

Definition at line 525 of file SgMJD.h.

References date_, and time_.

◆ operator+=()

SgMJD & SgMJD::operator+= ( double  days)

Adds a double to the object.

Definition at line 174 of file SgMJD.cpp.

References date_, normalize(), and time_.

◆ operator-=()

SgMJD & SgMJD::operator-= ( double  days)

Substract a double from the object.

Definition at line 189 of file SgMJD.cpp.

References date_, normalize(), and time_.

◆ operator=()

SgMJD & SgMJD::operator= ( const SgMJD T)
inline

An assignment operator.

Definition at line 473 of file SgMJD.h.

References date_, and time_.

Referenced by SgObservation::setMJD().

◆ operator==()

bool SgMJD::operator== ( const SgMJD T) const
inline

Compares the object with another one.

Definition at line 517 of file SgMJD.h.

References date_, and time_.

Referenced by SgObservation::operator==().

◆ saveIntermediateResults()

bool SgMJD::saveIntermediateResults ( QDataStream s) const

◆ setDate()

void SgMJD::setDate ( int  nDays)
inline

Sets the number of MJDays.

Parameters
nDays– integer MJD;

Definition at line 465 of file SgMJD.h.

References date_.

Referenced by SgAgvDriver::initSession(), and SgWrmsable::loadIntermediateResults().

◆ setTime()

void SgMJD::setTime ( double  dTime)

Sets a fractional part of the day.

Parameters
dTime– fractional part of the day;

Definition at line 165 of file SgMJD.cpp.

References normalize(), and time_.

Referenced by SgVlbiStationInfo::calcCBEpochs4Export(), SgAgvDriver::initSession(), SgWrmsable::loadIntermediateResults(), and SgVlbiSession::setupTimeRefer().

◆ setUpEpoch()

void SgMJD::setUpEpoch ( int  year,
int  month,
int  day,
int  hour,
int  min,
double  sec 
)

◆ toDouble()

◆ toLocal()

SgMJD SgMJD::toLocal ( ) const

Definition at line 1246 of file SgMJD.cpp.

References date_, MJD_reverse(), and time_.

Referenced by SgGuiVlbiHistory::SgGuiVlbiHistory().

◆ toQDateTime()

◆ toString()

QString SgMJD::toString ( Format  format = F_Verbose) const

Returns a string that represents epoch, or only date or time part of it. Output depend on Format parameter.

Parameters
format– a format of output string.

Definition at line 1007 of file SgMJD.cpp.

References calcDayOfYear(), date_, DAY2SEC, dayOfWeek2Str(), F_Date, F_DDMonYYYY, F_ECCDAT, F_FS_LOG, F_HHMMSS, F_INTERNAL, F_ISO, F_MJD, F_RFC2822, F_Simple, F_SINEX, F_SINEX_S, F_SOLVE_SPLFL, F_SOLVE_SPLFL_LONG, F_SOLVE_SPLFL_SHORT, F_SOLVE_SPLFL_V2, F_SOLVE_SPLFL_V3, F_Time, F_TimeShort, F_UNIX, F_Verbose, F_VerboseLong, F_Year, F_YYMonDD, F_YYYYMMDD, F_yyyymmdd, F_YYYYMMDDDD, F_YYYYMMDDHHMMSSSS, F_YYYYMMDDSSSSSS, F_YYYYMonDD, MJD_reverse(), shortMonthNames_, time_, toQDateTime(), tUnix0, and tZero.

Referenced by NsMainWindow::NsMainWindow(), SgGuiPiaReport::SgGuiPiaReport(), SgGuiVlbiHistory::SgGuiVlbiHistory(), SgGuiVlbiStnInfoEditor::SgGuiVlbiStnInfoEditor(), SgVgosDb::SgVgosDb(), NsMainWindow::about(), SgSolutionReporter::absorbInfo(), SgGuiVlbiStnClockBreakEditor::accept(), SgGuiVlbiHistory::addHistoryLine(), SgGuiVlbiStnInfoEditor::addNewClockBreak(), SgSefdReading::addValByChanKey(), SgDryMF_NMF::calc(), SgVlbiStationInfo::calcCBEpochs4Export(), SgVlbiSession::calculateClockBreaksParameters(), SgVlbiSession::check4ClockBreaksAtSBD(), SgVlbiStationInfo::checkAuxObs(), SgVlbiSession::checkBandForClockBreaks(), SgStnLogReadings::cleanMeteoParameters(), SgVlbiSession::collectAPriories(), SgVgosDb::composeHistoryBlock(), SgVlbiSession::correctClockBreak(), SgStnLogReadings::createAntabFile(), SgStnLogReadings::createAntCalFile(), SgKombOb01Record::debugReport(), SgKombBd01Record::debugReport(), SgKombBd02Record::debugReport(), SgGuiVlbiStnInfoEditor::deleteClockBreakRecord(), SgGuiVlbiHistory::delHistoryLine(), SgStnLogReadings::determineCableSignFromLong(), NsSessionEditDialog::displayExcludedObs(), NsSessionEditDialog::displayExcludedObs_old(), NsSessionEditDialog::displayPointInfo(), SgPlotArea::drawPointInfo(), SgPlotArea::drawRangeSelector(), SgPlotArea::drawXmjdTics(), SgDbhStartBlock::dump(), SgDbhHistoryEntry::dump(), SgVgosDb::dump2stdout(), SgVlbiSession::eliminateLargeOutliers(), SgVlbiSession::eliminateOutliers(), SgVlbiSession::eliminateOutliersSimpleMode(), SgVlbiObservation::evalExtApriori_StnPos(), evaluatePCal4GrpDelay(), SgVlbiObservation::evaluateResiduals(), SgVlbiObservation::evaluateTheoreticalValues(), SgSolutionReporter::evaluateUsedErpApriori(), SgSolutionReporter::evaluateUsedErpApriori2(), NsSessionHandler::exportDataIntoDbh(), NsSessionHandler::exportDataIntoVgosDb(), SgAgvPreaSection::fillDataStructures(), SgAgvTextSection::fillDataStructures(), SgEccSite::findRecord(), SgEstimator::finisRun(), SgSingleSessionTaskManager::finisRun(), SgVlbiSession::getDataFromDbhImage(), SgVlbiSession::getDataFromVgosDb(), NsScrPrx4VlbiObservation::getEpochStr(), SgVgosDb::init(), SgAgvDriver::initSession(), NsSessionHandler::inquireCat(), SgEstimator::insertNewParameters(), SgEccSite::insertRecord(), SgStnLogReadings::interpolateMeteoParameters(), SgVgosDb::loadHistory(), SgStnLogReadings::lookupScanName(), main(), SgVersion::name(), NsSessionHandler::notifyCat(), SgPlotArea::output4Files(), SgAgvChunk::parseMagicString(), SgVgosDb::parseVersionBlock(), SgEstimator::prepareStochasticSolution4Epoch(), NsSessionEditDialog::processClockBreakMarks(), NsSessionEditDialog::processClockBreakMarksNew(), SgVlbiSession::processKombFile(), NsSessionEditDialog::processTestFunctionN1(), SgPwlStorageBSplineL::propagatePartials(), SgPwlStorageBSplineQ::propagatePartials(), SgPwlStorageIncRates::propagatePartials(), SgVlbiSession::putDataIntoDbhImage(), SgVlbiSession::putDataIntoVgosDb(), SgPlot::queryData(), SgAPriories::readFile(), SgStnLogCollector::readLogFile(), SgSolutionReporter::report2MyFile(), SgSolutionReporter::reportBaselineVariationsBlock_Output4Spoolfile(), SgSolutionReporter::reportDeselectedObsBlock_Output4Spoolfile(), SgSolutionReporter::reportDeselectedObsBlock_Output4Spoolfile_v2(), SgSolutionReporter::reportDeselectedObsBlock_Output4Spoolfile_v3(), SgSolutionReporter::reportEstimationBlock_Output4Spoolfile(), SgSolutionReporter::reportIdentitiesBlock_Output4Spoolfile(), reportParameterList(), SgSolutionReporter::reportResidualsBlock_Output4Spoolfile(), SgSolutionReporter::reportResidualsBlock_Output4Spoolfile_old(), SgSolutionReporter::reportStochParameter(), SgSolutionReporter::reportTotalZenithDelays(), SgVlbiSession::restoreOutliers(), SgSingleSessionTaskManager::run(), SgVgosDb::saveForeignHistory(), SgVgosDb::saveLocalHistory(), SgEstimator::saveProcessedParameters(), SgVgosDb::setupFormat(), SgVlbiObservation::setupIdentities(), SgVlbiSession::setupTimeRefer(), SgEstimator::solveStochasticParameters(), SgVlbiObservable::strId(), NsSessionEditDialog::tab4GeneralInfo(), NsSessionEditDialog::updateSessionWideSolutions(), SgStnLogReadings::verifyReadings(), SgLogger::write(), and SgVlbiSession::writeUserData2File().

◆ toUtc()

◆ toYMDHMS_tr()

void SgMJD::toYMDHMS_tr ( int &  nYear,
int &  nMonth,
int &  nDay,
int &  nHour,
int &  nMin,
double &  dSec 
) const

Friends And Related Function Documentation

◆ operator+

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

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 
)
friend

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 
)
friend

Returns a difference of two epochs.

Definition at line 546 of file SgMJD.h.

◆ operator<

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

Compares T1 and T2.

Definition at line 554 of file SgMJD.h.

◆ operator<=

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

Compares T1 and T2.

Definition at line 564 of file SgMJD.h.

◆ operator>

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

Compares T1 and T2.

Definition at line 574 of file SgMJD.h.

◆ operator>=

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

Compares T1 and T2.

Definition at line 584 of file SgMJD.h.

Member Data Documentation

◆ date_

◆ longMonthNames_

const char * SgMJD::longMonthNames_
staticprotected
Initial value:
=
{
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
}

Definition at line 363 of file SgMJD.h.

◆ longWeekdayNames_

const char * SgMJD::longWeekdayNames_
staticprotected
Initial value:
=
{
"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"
}

Definition at line 365 of file SgMJD.h.

Referenced by dayOfWeek2LongStr().

◆ shortMonthNames_

const char * SgMJD::shortMonthNames_
staticprotected
Initial value:
=
{
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
}

Definition at line 362 of file SgMJD.h.

Referenced by fromString(), and toString().

◆ shortWeekdayNames_

const char * SgMJD::shortWeekdayNames_
staticprotected
Initial value:
=
{
"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"
}

Definition at line 364 of file SgMJD.h.

Referenced by dayOfWeek2Str().

◆ time_


The documentation for this class was generated from the following files: