Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::date_t Struct Reference

Type used to represent dates (days since 1970-01-01) More...

#include <duckdb.hpp>

Public Member Functions

 date_t (int32_t days_p)
 
 operator int32_t () const
 
bool operator== (const date_t &rhs) const
 
bool operator!= (const date_t &rhs) const
 
bool operator<= (const date_t &rhs) const
 
bool operator< (const date_t &rhs) const
 
bool operator> (const date_t &rhs) const
 
bool operator>= (const date_t &rhs) const
 
date_t operator+ (const int32_t &days) const
 
date_t operator- (const int32_t &days) const
 
date_toperator+= (const int32_t &days)
 
date_toperator-= (const int32_t &days)
 

Static Public Member Functions

static date_t infinity ()
 
static date_t ninfinity ()
 
static date_t epoch ()
 

Public Attributes

int32_t days
 

Detailed Description

Type used to represent dates (days since 1970-01-01)

Constructor & Destructor Documentation

◆ date_t()

duckdb::date_t::date_t ( int32_t  days_p)
inlineexplicit
4948 : days(days_p) {
4949 }

Member Function Documentation

◆ operator int32_t()

duckdb::date_t::operator int32_t ( ) const
inlineexplicit
4952 {
4953 return days;
4954 }

◆ operator==()

bool duckdb::date_t::operator== ( const date_t rhs) const
inline
4957 {
4958 return days == rhs.days;
4959 };

◆ operator!=()

bool duckdb::date_t::operator!= ( const date_t rhs) const
inline
4960 {
4961 return days != rhs.days;
4962 };

◆ operator<=()

bool duckdb::date_t::operator<= ( const date_t rhs) const
inline
4963 {
4964 return days <= rhs.days;
4965 };

◆ operator<()

bool duckdb::date_t::operator< ( const date_t rhs) const
inline
4966 {
4967 return days < rhs.days;
4968 };

◆ operator>()

bool duckdb::date_t::operator> ( const date_t rhs) const
inline
4969 {
4970 return days > rhs.days;
4971 };

◆ operator>=()

bool duckdb::date_t::operator>= ( const date_t rhs) const
inline
4972 {
4973 return days >= rhs.days;
4974 };

◆ operator+()

date_t duckdb::date_t::operator+ ( const int32_t days) const
inline
4977 {
4978 return date_t(this->days + days);
4979 };

◆ operator-()

date_t duckdb::date_t::operator- ( const int32_t days) const
inline
4980 {
4981 return date_t(this->days - days);
4982 };

◆ operator+=()

date_t & duckdb::date_t::operator+= ( const int32_t days)
inline
4985 {
4986 this->days += days;
4987 return *this;
4988 };

◆ operator-=()

date_t & duckdb::date_t::operator-= ( const int32_t days)
inline
4989 {
4990 this->days -= days;
4991 return *this;
4992 };

◆ infinity()

static date_t duckdb::date_t::infinity ( )
inlinestatic
4995 { // NOLINT
4996 return date_t(NumericLimits<int32_t>::Maximum());
4997 } // NOLINT

◆ ninfinity()

static date_t duckdb::date_t::ninfinity ( )
inlinestatic
4998 { // NOLINT
4999 return date_t(-NumericLimits<int32_t>::Maximum());
5000 } // NOLINT

◆ epoch()

static date_t duckdb::date_t::epoch ( )
inlinestatic
5001 { // NOLINT
5002 return date_t(0);
5003 } // NOLINT

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