OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DateConverters Namespace Reference

Functions

int64_t get_epoch_days_from_seconds (const int64_t seconds)
 
int64_t get_epoch_seconds_from_days (const int64_t days)
 

Function Documentation

int64_t DateConverters::get_epoch_days_from_seconds ( const int64_t  seconds)
inline

Definition at line 24 of file DateConverters.h.

References kSecsPerDay.

Referenced by anonymous_namespace{ArrowResultSetConverter.cpp}::appendToColumnBuilder(), data_conversion::StringViewToScalarEncoder< DataType, MetadataType >::convert(), DateDaysEncoder< T, V >::encodeDataAndUpdateStats(), anonymous_namespace{GroupByAndAggregate.cpp}::init_count_distinct_descriptors(), anonymous_namespace{TypedDataAccessors.h}::put_scalar(), and DateDaysOverflowValidator::validate().

24  {
25  return (seconds < 0 && seconds % kSecsPerDay != 0) ? (seconds / kSecsPerDay) - 1
26  : seconds / kSecsPerDay;
27 }
static constexpr int64_t kSecsPerDay

+ Here is the caller graph for this function:

int64_t DateConverters::get_epoch_seconds_from_days ( const int64_t  days)
inline