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

Universal Time Coordinated [UTC]. More...

Public Member Functions

constexpr InsTime_YMDHMS (int32_t year, int32_t month, int32_t day, int32_t hour, int32_t min, long double sec, int digits=-1)
 Constructor.
 
 operator std::string () const
 Converts the object into a readable string.
 
constexpr bool operator!= (const InsTime_YMDHMS &rhs) const
 Inequal comparison operator (takes double precision into account)
 
constexpr bool operator< (const InsTime_YMDHMS &rhs) const
 Smaller comparison operator (takes double precision into account)
 
constexpr bool operator<= (const InsTime_YMDHMS &rhs) const
 Smaller or equal comparison operator (takes double precision into account)
 
constexpr bool operator== (const InsTime_YMDHMS &rhs) const
 Equal comparison operator (takes double precision into account)
 
constexpr bool operator> (const InsTime_YMDHMS &rhs) const
 Greater comparison operator (takes double precision into account)
 
constexpr bool operator>= (const InsTime_YMDHMS &rhs) const
 Greater or equal comparison operator (takes double precision into account)
 

Public Attributes

int32_t day
 Contains day in Universal Time Coordinated [UTC].
 
int32_t hour
 Contains hour in Universal Time Coordinated [UTC].
 
int32_t min
 Contains minute in Universal Time Coordinated [UTC].
 
int32_t month
 Contains month in Universal Time Coordinated [UTC].
 
long double sec
 Contains second in Universal Time Coordinated [UTC].
 
int32_t year
 Contains year in Universal Time Coordinated [UTC].
 

Detailed Description

Universal Time Coordinated [UTC].

Constructor & Destructor Documentation

◆ InsTime_YMDHMS()

constexpr NAV::InsTime_YMDHMS::InsTime_YMDHMS ( int32_t year,
int32_t month,
int32_t day,
int32_t hour,
int32_t min,
long double sec,
int digits = -1 )
inlineconstexpr

Constructor.

Parameters
[in]yearYear in Universal Time Coordinated [UTC]
[in]monthMonth in Universal Time Coordinated (1 = January) [UTC]
[in]dayDay in Universal Time Coordinated (1 = first day) [UTC]
[in]hourHour in Universal Time Coordinated [UTC]
[in]minMinute in Universal Time Coordinated [UTC]
[in]secSecond in Universal Time Coordinated [UTC]
[in]digitsAmount of digits for the seconds to round to

Member Function Documentation

◆ operator!=()

constexpr bool NAV::InsTime_YMDHMS::operator!= ( const InsTime_YMDHMS & 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_YMDHMS::operator< ( const InsTime_YMDHMS & 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_YMDHMS::operator<= ( const InsTime_YMDHMS & 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_YMDHMS::operator== ( const InsTime_YMDHMS & 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_YMDHMS::operator> ( const InsTime_YMDHMS & 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_YMDHMS::operator>= ( const InsTime_YMDHMS & 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: