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::timestamp_t Struct Reference

Type used to represent a TIMESTAMP. timestamp_t holds the microseconds since 1970-01-01. More...

#include <duckdb.hpp>

Inheritance diagram for duckdb::timestamp_t:

Public Member Functions

constexpr timestamp_t (int64_t micros)
 
timestamp_toperator= (int64_t micros)
 
 operator int64_t () const
 
bool operator== (const timestamp_t &rhs) const
 
bool operator!= (const timestamp_t &rhs) const
 
bool operator<= (const timestamp_t &rhs) const
 
bool operator< (const timestamp_t &rhs) const
 
bool operator> (const timestamp_t &rhs) const
 
bool operator>= (const timestamp_t &rhs) const
 
timestamp_t operator+ (const double &value) const
 
int64_t operator- (const timestamp_t &other) const
 
timestamp_toperator+= (const int64_t &delta)
 
timestamp_toperator-= (const int64_t &delta)
 

Static Public Member Functions

static constexpr timestamp_t infinity ()
 
static constexpr timestamp_t ninfinity ()
 
static constexpr timestamp_t epoch ()
 

Public Attributes

int64_t value
 

Detailed Description

Type used to represent a TIMESTAMP. timestamp_t holds the microseconds since 1970-01-01.

Constructor & Destructor Documentation

◆ timestamp_t()

constexpr duckdb::timestamp_t::timestamp_t ( int64_t  micros)
inlineexplicitconstexpr
4139 : value(micros) {
4140 }

Member Function Documentation

◆ operator=()

timestamp_t & duckdb::timestamp_t::operator= ( int64_t  micros)
inline
4141 {
4142 value = micros;
4143 return *this;
4144 }

◆ operator int64_t()

duckdb::timestamp_t::operator int64_t ( ) const
inlineexplicit
4147 {
4148 return value;
4149 }

◆ operator==()

bool duckdb::timestamp_t::operator== ( const timestamp_t rhs) const
inline
4152 {
4153 return value == rhs.value;
4154 };

◆ operator!=()

bool duckdb::timestamp_t::operator!= ( const timestamp_t rhs) const
inline
4155 {
4156 return value != rhs.value;
4157 };

◆ operator<=()

bool duckdb::timestamp_t::operator<= ( const timestamp_t rhs) const
inline
4158 {
4159 return value <= rhs.value;
4160 };

◆ operator<()

bool duckdb::timestamp_t::operator< ( const timestamp_t rhs) const
inline
4161 {
4162 return value < rhs.value;
4163 };

◆ operator>()

bool duckdb::timestamp_t::operator> ( const timestamp_t rhs) const
inline
4164 {
4165 return value > rhs.value;
4166 };

◆ operator>=()

bool duckdb::timestamp_t::operator>= ( const timestamp_t rhs) const
inline
4167 {
4168 return value >= rhs.value;
4169 };

◆ infinity()

static constexpr timestamp_t duckdb::timestamp_t::infinity ( )
inlinestaticconstexpr
4180 { // NOLINT
4181 return timestamp_t(NumericLimits<int64_t>::Maximum());
4182 } // NOLINT

◆ ninfinity()

static constexpr timestamp_t duckdb::timestamp_t::ninfinity ( )
inlinestaticconstexpr
4183 { // NOLINT
4184 return timestamp_t(-NumericLimits<int64_t>::Maximum());
4185 } // NOLINT

◆ epoch()

static constexpr timestamp_t duckdb::timestamp_t::epoch ( )
inlinestaticconstexpr
4186 { // NOLINT
4187 return timestamp_t(0);
4188 } // NOLINT

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