TimeConstants.hpp File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  gpstk

Variables

const double MJD_TO_JD = 2400000.5
 Add this offset to convert Modified Julian Date to Julian Date.
const long MJD_JDAY = 2400001L
 'Julian day' offset from MJD
const long GPS_EPOCH_JDAY = 2444245L
 'Julian day' of GPS epoch (Jan. 1, 1980).
const long GPS_EPOCH_MJD = 44244L
 Modified Julian Date of GPS epoch (Jan. 1, 1980).
const long UNIX_MJD = 40587L
 Modified Julian Date of UNIX epoch (Jan. 1, 1970).
const long HALFWEEK = 302400L
 Seconds per half a GPS week.
const long FULLWEEK = 604800L
 Seconds per whole GPS week.
const long WEEK_PER_EPOCH = 1024L
 Weeks per GPS Epoch.
const long SEC_PER_DAY = 86400L
 Seconds per day.
const double DAY_PER_SEC = 1.0/SEC_PER_DAY
 Days per second.
const long MS_PER_SEC = 1000L
 Milliseconds in a second.
const double SEC_PER_MS = 1.0/MS_PER_SEC
 Seconds per millisecond.
const long MS_PER_DAY = MS_PER_SEC * SEC_PER_DAY
 Milliseconds in a day.
const double DAY_PER_MS = 1.0/MS_PER_DAY
 Days per milliseconds.
const long ZCOUNT_PER_DAY = 57600L
 Zcounts in a day.
const double DAY_PER_ZCOUNT = 1.0/ZCOUNT_PER_DAY
 Days in a Zcount.
const long ZCOUNT_PER_WEEK = 403200L
 Zcounts in a week.
const double WEEK_PER_ZCOUNT = 1.0/ZCOUNT_PER_WEEK
 Weeks in a Zcount.


Variable Documentation

const double DAY_PER_MS = 1.0/MS_PER_DAY
 

Days per milliseconds.

Definition at line 64 of file TimeConstants.hpp.

const double DAY_PER_SEC = 1.0/SEC_PER_DAY
 

Days per second.

Definition at line 54 of file TimeConstants.hpp.

Referenced by JulianDate::convertFromCommonTime().

const double DAY_PER_ZCOUNT = 1.0/ZCOUNT_PER_DAY
 

Days in a Zcount.

Definition at line 69 of file TimeConstants.hpp.

const long FULLWEEK = 604800L
 

Seconds per whole GPS week.

Definition at line 46 of file TimeConstants.hpp.

Referenced by DayTime::setGPSfullweek().

const long GPS_EPOCH_JDAY = 2444245L
 

'Julian day' of GPS epoch (Jan. 1, 1980).

Definition at line 37 of file TimeConstants.hpp.

Referenced by GPSWeekZcount::convertToCommonTime(), GPSWeekSecond::convertToCommonTime(), and DayTime::setGPSfullweek().

const long GPS_EPOCH_MJD = 44244L
 

Modified Julian Date of GPS epoch (Jan. 1, 1980).

Definition at line 39 of file TimeConstants.hpp.

const long HALFWEEK = 302400L
 

Seconds per half a GPS week.

Definition at line 44 of file TimeConstants.hpp.

const long MJD_JDAY = 2400001L
 

'Julian day' offset from MJD

Definition at line 35 of file TimeConstants.hpp.

Referenced by UnixTime::convertFromCommonTime(), ANSITime::convertFromCommonTime(), UnixTime::convertToCommonTime(), MJD::convertToCommonTime(), ANSITime::convertToCommonTime(), DayTime::setMJD(), DayTime::setUnix(), and DayTime::unixTime().

const double MJD_TO_JD = 2400000.5
 

Add this offset to convert Modified Julian Date to Julian Date.

Definition at line 33 of file TimeConstants.hpp.

const long MS_PER_DAY = MS_PER_SEC * SEC_PER_DAY
 

Milliseconds in a day.

Definition at line 62 of file TimeConstants.hpp.

Referenced by CommonTime::get().

const long MS_PER_SEC = 1000L
 

Milliseconds in a second.

Definition at line 57 of file TimeConstants.hpp.

Referenced by CommonTime::addSeconds(), CommonTime::get(), and CommonTime::set().

const long SEC_PER_DAY = 86400L
 

Seconds per day.

Definition at line 52 of file TimeConstants.hpp.

Referenced by UnixTime::convertFromCommonTime(), GPSWeekSecond::convertFromCommonTime(), ANSITime::convertFromCommonTime(), UnixTime::convertToCommonTime(), GPSWeekSecond::convertToCommonTime(), ANSITime::convertToCommonTime(), and CommonTime::operator-().

const double SEC_PER_MS = 1.0/MS_PER_SEC
 

Seconds per millisecond.

Definition at line 59 of file TimeConstants.hpp.

Referenced by CommonTime::get(), and CommonTime::operator-().

const long UNIX_MJD = 40587L
 

Modified Julian Date of UNIX epoch (Jan. 1, 1970).

Definition at line 41 of file TimeConstants.hpp.

Referenced by UnixTime::convertToCommonTime(), ANSITime::convertToCommonTime(), DayTime::setUnix(), and DayTime::unixTime().

const long WEEK_PER_EPOCH = 1024L
 

Weeks per GPS Epoch.

Definition at line 49 of file TimeConstants.hpp.

const double WEEK_PER_ZCOUNT = 1.0/ZCOUNT_PER_WEEK
 

Weeks in a Zcount.

Definition at line 74 of file TimeConstants.hpp.

const long ZCOUNT_PER_DAY = 57600L
 

Zcounts in a day.

Definition at line 67 of file TimeConstants.hpp.

const long ZCOUNT_PER_WEEK = 403200L
 

Zcounts in a week.

Definition at line 72 of file TimeConstants.hpp.


Generated on Wed Feb 8 03:31:21 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1