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

Public Member Functions

template<>
duckdb::timestamp_t Operation (duckdb::timestamp_t input)
template<>
timestamp_t Operation (timestamp_t input)

Static Public Member Functions

template<class SRC, class DST>
static DST Operation (SRC input)

Member Function Documentation

◆ Operation() [1/2]

template<class SRC, class DST>
DST duckdb::CastTimestampUsToSec::Operation ( SRC input)
inlinestatic
31985 {
31986 throw duckdb::NotImplementedException("Cast to timestamp could not be performed!");
31987 }

◆ Operation() [2/2]

template<>
timestamp_t duckdb::CastTimestampUsToSec::Operation ( timestamp_t input)
89851 {
89852 if (!Timestamp::IsFinite(input)) {
89853 return input;
89854 }
89855 timestamp_t cast_timestamp(Timestamp::GetEpochRounded(input, Interval::MICROS_PER_SEC));
89856 return cast_timestamp;
89857}
static DUCKDB_API int64_t GetEpochRounded(timestamp_t timestamp, const int64_t power_of_ten)
Convert a timestamp to a rounded epoch at a given resolution.
Definition duckdb.cpp:129935
static bool IsFinite(timestamp_t timestamp)
True, if the timestamp is finite, else false.
Definition duckdb.hpp:4287

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