0.2.0
Loading...
Searching...
No Matches
NAV::InsTime_MJD Struct Reference

Modified Julien Date [UTC]. More...

Public Member Functions

constexpr InsTime_MJD ()=default
 Default constructor.
 
constexpr InsTime_MJD (int32_t mjd_day, long double mjd_frac)
 Constructor.
 
 operator std::string () const
 Converts the object into a readable string.
 
constexpr bool operator!= (const InsTime_MJD &rhs) const
 Inequal comparison operator (takes double precision into account)
 
constexpr bool operator< (const InsTime_MJD &rhs) const
 Smaller comparison operator (takes double precision into account)
 
constexpr bool operator<= (const InsTime_MJD &rhs) const
 Smaller or equal comparison operator (takes double precision into account)
 
constexpr bool operator== (const InsTime_MJD &rhs) const
 Equal comparison operator (takes double precision into account)
 
constexpr bool operator> (const InsTime_MJD &rhs) const
 Greater comparison operator (takes double precision into account)
 
constexpr bool operator>= (const InsTime_MJD &rhs) const
 Greater or equal comparison operator (takes double precision into account)
 

Public Attributes

int32_t mjd_day
 Full days since 17. November 1858 [UTC].
 
long double mjd_frac
 Decimal fractions of a day of the Modified Julien Date [UTC].
 

Detailed Description

Modified Julien Date [UTC].

Constructor & Destructor Documentation

◆ InsTime_MJD()

constexpr NAV::InsTime_MJD::InsTime_MJD ( int32_t mjd_day,
long double mjd_frac )
inlineconstexpr

Constructor.

Parameters
[in]mjd_dayFull days of the Modified Julien Date [UTC]
[in]mjd_fracDecimal fractions of a day of the Modified Julien Date [UTC]

Member Function Documentation

◆ operator!=()

constexpr bool NAV::InsTime_MJD::operator!= ( const InsTime_MJD & rhs) const
inlineconstexpr

Inequal comparison operator (takes double precision into account)

Parameters
[in]rhsRight-hand side to compare with
Returns
Comparison result

◆ operator<()

constexpr bool NAV::InsTime_MJD::operator< ( const InsTime_MJD & rhs) const
inlineconstexpr

Smaller comparison operator (takes double precision into account)

Parameters
[in]rhsRight-hand side to compare with
Returns
Comparison result

◆ operator<=()

constexpr bool NAV::InsTime_MJD::operator<= ( const InsTime_MJD & rhs) const
inlineconstexpr

Smaller or equal comparison operator (takes double precision into account)

Parameters
[in]rhsRight-hand side to compare with
Returns
Comparison result

◆ operator==()

constexpr bool NAV::InsTime_MJD::operator== ( const InsTime_MJD & rhs) const
inlineconstexpr

Equal comparison operator (takes double precision into account)

Parameters
[in]rhsRight-hand side to compare with
Returns
Comparison result

◆ operator>()

constexpr bool NAV::InsTime_MJD::operator> ( const InsTime_MJD & rhs) const
inlineconstexpr

Greater comparison operator (takes double precision into account)

Parameters
[in]rhsRight-hand side to compare with
Returns
Comparison result

◆ operator>=()

constexpr bool NAV::InsTime_MJD::operator>= ( const InsTime_MJD & rhs) const
inlineconstexpr

Greater or equal comparison operator (takes double precision into account)

Parameters
[in]rhsRight-hand side to compare with
Returns
Comparison result

The documentation for this struct was generated from the following file: