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

Static Public Member Functions

static ScalarFunctionSet GetFunctions ()

Static Public Attributes

static constexpr const char * Name = "try_strptime"
static constexpr const char * Parameters = "text,format"
static constexpr const char * Description = "Converts the `string` text to timestamp according to the format string. Returns `NULL` on failure."
static constexpr const char * Example = "try_strptime('Wed, 1 January 1992 - 08:38:40 PM', '%a, %-d %B %Y - %I:%M:%S %p')"
static constexpr const char * Categories = ""

Member Function Documentation

◆ GetFunctions()

ScalarFunctionSet duckdb::TryStrpTimeFun::GetFunctions ( )
static
226124 {
226125 ScalarFunctionSet try_strptime("try_strptime");
226126
226127 const auto list_type = LogicalType::LIST(LogicalType::VARCHAR);
226128 auto fun = ScalarFunction({LogicalType::VARCHAR, LogicalType::VARCHAR}, LogicalType::TIMESTAMP,
226129 StrpTimeFunction::TryParse<timestamp_t>, StrpTimeFunction::Bind);
226130 fun.SetNullHandling(FunctionNullHandling::SPECIAL_HANDLING);
226131 try_strptime.AddFunction(fun);
226132
226133 fun = ScalarFunction({LogicalType::VARCHAR, list_type}, LogicalType::TIMESTAMP,
226134 StrpTimeFunction::TryParse<timestamp_t>, StrpTimeFunction::Bind);
226135 fun.SetNullHandling(FunctionNullHandling::SPECIAL_HANDLING);
226136 try_strptime.AddFunction(fun);
226137
226138 return try_strptime;
226139}

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