|
| template<class SRC, class DST> |
| static DST | Operation (SRC input) |
◆ Operation() [1/2]
template<class SRC, class DST>
| DST duckdb::CastTimestampNsToDate::Operation |
( |
SRC | input | ) |
|
|
inlinestatic |
32020 {
32021 throw duckdb::NotImplementedException("Cast to DATE could not be performed!");
32022 }
◆ Operation() [2/2]
89903 {
89904 if (input == timestamp_t::infinity()) {
89905 return date_t::infinity();
89906 } else if (input == timestamp_t::ninfinity()) {
89907 return date_t::ninfinity();
89908 }
89909 const auto us = CastTimestampNsToUs::Operation<timestamp_t, timestamp_t>(input);
89910 return Timestamp::GetDate(us);
89911}
The documentation for this struct was generated from the following file: