OmniSciDB  04ee39c94c
anonymous_namespace{DateTimeUtils.h} Namespace Reference

Variables

static const std::map< std::pair< int32_t, ExtractField >, std::pair< SQLOps, int64_t > > extract_precision_lookup
 
static const std::map< std::pair< int32_t, DatetruncField >, int64_t > datetrunc_precision_lookup
 

Variable Documentation

◆ datetrunc_precision_lookup

const std::map<std::pair<int32_t, DatetruncField>, int64_t> anonymous_namespace{DateTimeUtils.h}::datetrunc_precision_lookup
static
Initial value:
{{9, dtMICROSECOND}, kMilliSecsPerSec},
static constexpr int64_t kMilliSecsPerSec
static constexpr int64_t kMicroSecsPerSec

Definition at line 40 of file DateTimeUtils.h.

Referenced by DateTimeUtils::get_datetrunc_high_precision_scale().

◆ extract_precision_lookup

const std::map<std::pair<int32_t, ExtractField>, std::pair<SQLOps, int64_t> > anonymous_namespace{DateTimeUtils.h}::extract_precision_lookup
static
Initial value:
{{6, kMILLISECOND}, {kDIVIDE, kMilliSecsPerSec}},
{{6, kNANOSECOND}, {kMULTIPLY, kMilliSecsPerSec}},
{{9, kMILLISECOND}, {kDIVIDE, kMicroSecsPerSec}},
{{9, kMICROSECOND}, {kDIVIDE, kMilliSecsPerSec}}}
static constexpr int64_t kMilliSecsPerSec
static constexpr int64_t kMicroSecsPerSec

Definition at line 32 of file DateTimeUtils.h.

Referenced by DateTimeUtils::get_extract_high_precision_adjusted_scale().