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

Public Member Functions

template<>
DUCKDB_API bool Operation (string_t input, timestamp_ns_t &result, bool strict)
template<>
DUCKDB_API bool Operation (date_t input, timestamp_ns_t &result, bool strict)
template<>
bool Operation (string_t input, timestamp_ns_t &result, bool strict)
template<>
bool Operation (date_t input, timestamp_ns_t &result, bool strict)

Static Public Member Functions

template<class SRC, class DST>
static bool Operation (SRC input, DST &result, bool strict=false)

Member Function Documentation

◆ Operation() [1/3]

template<class SRC, class DST>
bool duckdb::TryCastToTimestampNS::Operation ( SRC input,
DST & result,
bool strict = false )
inlinestatic
31884 {
31885 throw InternalException("Unsupported type for try cast to timestamp (ns)");
31886 }

◆ Operation() [2/3]

template<>
bool duckdb::TryCastToTimestampNS::Operation ( string_t input,
timestamp_ns_t & result,
bool strict )
89958 {
89959 return TryCast::Operation<string_t, timestamp_ns_t>(input, result, strict);
89960}

◆ Operation() [3/3]

template<>
bool duckdb::TryCastToTimestampNS::Operation ( date_t input,
timestamp_ns_t & result,
bool strict )
89981 {
89982 if (!TryCast::Operation<date_t, timestamp_t>(input, result, strict)) {
89983 return false;
89984 }
89985 if (!Timestamp::IsFinite(result)) {
89986 return true;
89987 }
89988 if (!TryMultiplyOperator::Operation(result.value, Interval::NANOS_PER_MICRO, result.value)) {
89989 return false;
89990 }
89991 return true;
89992}
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: