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

Public Member Functions

template<>
DUCKDB_API bool Operation (string_t input, timestamp_t &result, bool strict)
template<>
DUCKDB_API bool Operation (date_t input, timestamp_t &result, bool strict)
template<>
bool Operation (string_t input, timestamp_t &result, bool strict)
template<>
bool Operation (date_t input, timestamp_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::TryCastToTimestampMS::Operation ( SRC input,
DST & result,
bool strict = false )
inlinestatic
31891 {
31892 throw InternalException("Unsupported type for try cast to timestamp (ms)");
31893 }

◆ Operation() [2/3]

template<>
bool duckdb::TryCastToTimestampMS::Operation ( string_t input,
timestamp_t & result,
bool strict )
89963 {
89964 if (!TryCast::Operation<string_t, timestamp_t>(input, result, strict)) {
89965 return false;
89966 }
89967 result = CastTimestampUsToMs::Operation<timestamp_t, timestamp_t>(result);
89968 return true;
89969}

◆ Operation() [3/3]

template<>
bool duckdb::TryCastToTimestampMS::Operation ( date_t input,
timestamp_t & result,
bool strict )
89995 {
89996 if (!TryCast::Operation<date_t, timestamp_t>(input, result, strict)) {
89997 return false;
89998 }
89999 if (!Timestamp::IsFinite(result)) {
90000 return true;
90001 }
90002 result.value /= Interval::MICROS_PER_MSEC;
90003 return true;
90004}
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: