General Purpose Geodetic Library
|
#include <SgMJD.h>
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 () | |
SgMJD & | operator= (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 |
SgMJD & | operator+= (double days) |
SgMJD & | operator-= (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) |
====================================================================================================
enum SgMJD::Format |
|
inline |
A constructor. Creates an empty vector (for I/O purposes or later assignments).
Definition at line 386 of file SgMJD.h.
Referenced by fromString().
|
inline |
|
inline |
|
inline |
|
inline |
A constructor. Creates a copy of an object.
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().
|
inline |
Definition at line 429 of file SgMJD.h.
References setUpEpoch().
|
inline |
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_.
|
static |
Calculates MJDay number for particular date.
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().
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().
int SgMJD::calcDayOfYear | ( | ) | const |
Calculates and returns day number in a year.
Definition at line 237 of file SgMJD.cpp.
References calcDayNumber(), calcYear(), and date_.
Referenced by SgVlbiSession::getDataFromDbhImage(), SgVlbiSession::getDataFromVgosDb(), SgVlbiSession::processKombFile(), SgDbhServiceRecordHS1::setHistoryEpoch(), and toString().
|
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().
|
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().
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_.
|
static |
Calculates part of the day that is corresponding to given hour, min and sec.
hour | – an hour; |
min | – a number of minutes; |
sec | – seconds. |
Definition at line 41 of file SgMJD.cpp.
References DAY2SEC.
Referenced by setUpEpoch().
|
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().
int SgMJD::calcYear | ( | ) | const |
Calculates and returns a year of the epoch.
Definition at line 204 of file SgMJD.cpp.
References date_, MJD_reverse(), and time_.
Referenced by calcDayOfYear(), NsSessionHandler::exportDataIntoVgosDb(), SgVlbiSession::importDataFromLogFiles(), main(), SgStnLogCollector::readLogFile(), and SgVlbiSession::selfCheck().
|
inline |
Returns name of the class (for debug output).
Definition at line 488 of file SgMJD.h.
Referenced by dayOfWeek2LongStr(), dayOfWeek2Str(), loadIntermediateResults(), and saveIntermediateResults().
|
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().
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().
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().
bool SgMJD::fromString | ( | Format | format, |
const QString & | str, | ||
bool | isReset = true |
||
) |
Sets up proper value of the epoch parsing input string.
format | – a format of the string; |
str | – input string to parse; |
isReset | – if true, the value of *this is reseted to TZero before parsing the input string. |
Definition at line 267 of file SgMJD.cpp.
References SgMJD(), calcDayNumber(), date_, DAY2SEC, 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, normalize(), setUpEpoch(), shortMonthNames_, time_, tUnix0, and tZero.
Referenced by SgAgvPreaSection::importData(), SgVgosDb::loadHistory(), parse_opt(), SgAgvTextSection::parseChapterInitString(), SgVgosDb::parseHistoryProcessSubBlock(), SgEccRec::parseString(), and SgVgosDb::parseVersionBlock().
|
inline |
Returns number of MJDays.
Definition at line 449 of file SgMJD.h.
References date_.
Referenced by SgGuiVlbiStnClockBreakEditor::SgGuiVlbiStnClockBreakEditor(), SgVlbiSession::exportDataIntoNgsFile(), SgAgvDriver::fillSessVars(), fundArgs_Old(), fundArgs_Old_another_verison(), SgVlbiSession::getDataFromVgosDb(), SgAgvDriver::initSession(), SgVlbiSession::putDataIntoDbhImage(), SgSolutionReporter::reportAtmo(), SgSolutionReporter::reportCloc(), SgSolutionReporter::reportGeneralStatsBlock_Output4Spoolfile(), SgSolutionReporter::reportIdentitiesBlock_Output4Spoolfile(), SgSolutionReporter::reportStations_Output4AposterioriFiles(), SgWrmsable::saveIntermediateResults(), SgDbhServiceRecordHS1::setHistoryEpoch(), SgVlbiSession::setupTimeRefer(), and NsTestDialog::testPlot().
|
inline |
Returns a fractional part of the day.
Definition at line 457 of file SgMJD.h.
References time_.
Referenced by SgGuiVlbiStnClockBreakEditor::SgGuiVlbiStnClockBreakEditor(), SgOceanLoad::arg_IERS(), SgVlbiStationInfo::calcCBEpochs4Export(), SgVlbiSession::exportDataIntoNgsFile(), SgAgvDriver::fillSessVars(), fundArgs_Old(), fundArgs_Old_another_verison(), SgVlbiSession::getDataFromVgosDb(), SgAgvDriver::initSession(), SgVlbiSession::putDataIntoDbhImage(), SgSolutionReporter::reportAtmo(), SgSolutionReporter::reportCloc(), SgSolutionReporter::reportGeneralStatsBlock_Output4Spoolfile(), SgSolutionReporter::reportIdentitiesBlock_Output4Spoolfile(), SgSolutionReporter::reportStations_Output4AposterioriFiles(), SgWrmsable::saveIntermediateResults(), and SgDbhServiceRecordHS1::setHistoryEpoch().
double SgMJD::gmst | ( | ) | const |
bool SgMJD::loadIntermediateResults | ( | QDataStream & | s | ) |
Definition at line 1329 of file SgMJD.cpp.
References className(), date_, SgLogger::ERR, SgLogger::IO_BIN, logger, time_, and SgLogger::write().
Referenced by SgParameterBreak::loadIntermediateResults(), and SgVersion::loadIntermediateResults().
|
static |
Converts date and time into human readable representation of the epoch for the given MJD.
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().
|
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.
Referenced by fromString(), operator+=(), operator-=(), setTime(), and setUpEpoch().
|
inline |
SgMJD & SgMJD::operator+= | ( | double | days | ) |
Adds a double to the object.
Definition at line 174 of file SgMJD.cpp.
References date_, normalize(), and time_.
SgMJD & SgMJD::operator-= | ( | double | days | ) |
Substract a double from the object.
Definition at line 189 of file SgMJD.cpp.
References date_, normalize(), and time_.
An assignment operator.
Definition at line 473 of file SgMJD.h.
Referenced by SgObservation::setMJD().
|
inline |
Compares the object with another one.
Definition at line 517 of file SgMJD.h.
Referenced by SgObservation::operator==().
bool SgMJD::saveIntermediateResults | ( | QDataStream & | s | ) | const |
Definition at line 1314 of file SgMJD.cpp.
References className(), date_, SgLogger::ERR, SgLogger::IO_BIN, logger, time_, and SgLogger::write().
Referenced by SgParameterBreak::saveIntermediateResults(), and SgVersion::saveIntermediateResults().
|
inline |
Sets the number of MJDays.
nDays | – integer MJD; |
Definition at line 465 of file SgMJD.h.
References date_.
Referenced by SgAgvDriver::initSession(), and SgWrmsable::loadIntermediateResults().
void SgMJD::setTime | ( | double | dTime | ) |
Sets a fractional part of the day.
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().
void SgMJD::setUpEpoch | ( | int | year, |
int | month, | ||
int | day, | ||
int | hour, | ||
int | min, | ||
double | sec | ||
) |
Sets up proper value of the epoch.
year | – a year; |
month | – a month; |
day | – a day of the month; |
hour | – a hour; |
min | – a minute; |
sec | – a second. |
Definition at line 254 of file SgMJD.cpp.
References calcDayNumber(), calcPartOfDay(), date_, normalize(), and time_.
Referenced by SgMJD(), SgStnLogCollector::extractDataFromMetRecord(), SgStnLogCollector::extractDataFromPcmtRecord(), SgStnLogCollector::extractEpoch(), fromString(), SgVlbiSession::getDataFromDbhImage(), SgVlbiSession::getDataFromVgosDb(), SgStnLogCollector::readDbbc3DumpFile(), SgAPriories::readFile(), SgVlbiSession::setupTimeRefer(), and SgVlbaLogCollector::strs2mjd().
|
inline |
Converts SgMJD type to double.
Definition at line 533 of file SgMJD.h.
Referenced by SgPwlStorageBSplineL::calcAX(), SgPwlStorageBSplineQ::calcAX(), SgPwlStorageIncRates::calcAX(), SgVlbiSession::calcTMean(), SgVlbiSessionInfo::calcTMean(), SgVlbiBaselineInfo::calculateClockF1(), SgVlbiSession::collectAPriories(), SgPlotArea::drawXmjdTics(), SgVlbiSession::getAprioriErp(), SgVlbiSession::putDataIntoDbhImage(), SgExternalEopFile::readC04File(), SgExternalEopFile::readErpFile(), SgExternalEopFile::readFinalsFile(), SgSolutionReporter::reportAtmo(), SgSolutionReporter::reportCloc(), SgSolutionReporter::reportEstimationBlock_Output4Spoolfile(), SgSolutionReporter::reportGeneralStatsBlock_Output4Spoolfile(), SgSolutionReporter::reportSources_Output4AposterioriFiles(), NsSessionEditDialog::tab4BandPlots(), NsSessionEditDialog::tab4SessionPlot(), NsSessionEditDialog::tab4StationsPlot(), and SgPartial::updateStatistics().
SgMJD SgMJD::toLocal | ( | ) | const |
Definition at line 1246 of file SgMJD.cpp.
References date_, MJD_reverse(), and time_.
Referenced by SgGuiVlbiHistory::SgGuiVlbiHistory().
QDateTime SgMJD::toQDateTime | ( | ) | const |
Definition at line 151 of file SgMJD.cpp.
References date_, MJD_reverse(), and time_.
Referenced by NsScrPrx4VlbiObservation::getEpoch(), NsScrPrx4VlbiAuxObservation::getEpoch(), NsScrPrx4Band::getTCreation(), NsScrPrx4Session::getTCreation(), NsScrPrx4Session::getTFinis(), NsScrPrx4Object::getTfirst(), NsScrPrx4Object::getTlast(), NsScrPrx4Session::getTMean(), NsScrPrx4Session::getTStart(), and toString().
Returns a string that represents epoch, or only date or time part of it. Output depend on Format parameter.
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().
SgMJD SgMJD::toUtc | ( | ) | const |
Definition at line 1229 of file SgMJD.cpp.
References date_, MJD_reverse(), and time_.
Referenced by SgVgosDb::composeHistoryBlock(), SgVgosDb::loadHistory(), SgVlbiSession::makeHistory(), SgVlbiSession::makeHistoryIntro(), SgVgosDb::parseHistoryProcessSubBlock(), SgVlbiSession::putDataIntoDbhImage(), SgVlbiSession::putDataIntoVgosDb(), and SgVgosDb::setupFormat().
void SgMJD::toYMDHMS_tr | ( | int & | nYear, |
int & | nMonth, | ||
int & | nDay, | ||
int & | nHour, | ||
int & | nMin, | ||
double & | dSec | ||
) | const |
Definition at line 1305 of file SgMJD.cpp.
References date_, MJD_reverse(), and time_.
Referenced by SgAgvDriver::fillBslnVars(), SgAgvDriver::fillSessVars(), VcCalc2SessionIfc::get4_sec_Tag(), VcCalc2SessionIfc::getI_intrval4(), VcCalc2SessionIfc::getI_utc_tag2(), VcCalc2SessionIfc::getI_utc_tag4(), SgVlbiSession::putDataIntoVgosDb(), SgVlbiSession::setupTimeRefer(), and SgVgosDb::storeSessionHead().
|
private |
Definition at line 354 of file SgMJD.h.
Referenced by SgMJD(), calcDay(), calcDayOfWeek(), calcDayOfYear(), calcMonth(), calcYear(), dayOfWeek2LongStr(), dayOfWeek2Str(), fromString(), getDate(), gmst(), loadIntermediateResults(), normalize(), operator!=(), operator+=(), operator-=(), operator=(), operator==(), saveIntermediateResults(), setDate(), setUpEpoch(), toDouble(), toLocal(), toQDateTime(), toString(), toUtc(), and toYMDHMS_tr().
|
staticprotected |
|
staticprotected |
Definition at line 365 of file SgMJD.h.
Referenced by dayOfWeek2LongStr().
|
staticprotected |
Definition at line 362 of file SgMJD.h.
Referenced by fromString(), and toString().
|
staticprotected |
Definition at line 364 of file SgMJD.h.
Referenced by dayOfWeek2Str().
|
private |
integer part of the epoch;
Definition at line 355 of file SgMJD.h.
Referenced by SgMJD(), calcDay(), calcHour(), calcMin(), calcMonth(), calcSec(), calcYear(), fromString(), getTime(), gmst(), loadIntermediateResults(), normalize(), operator!=(), operator+=(), operator-=(), operator=(), operator==(), saveIntermediateResults(), setTime(), setUpEpoch(), toDouble(), toLocal(), toQDateTime(), toString(), toUtc(), and toYMDHMS_tr().