17 #ifndef QUERYENGINE_EXTRACTFROMTIME_H
18 #define QUERYENGINE_EXTRACTFROMTIME_H
23 #include "../Shared/funcannotations.h"
74 constexpr
unsigned MARJAN = 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + 31;
105 return (dividend < 0 ? dividend - (divisor - 1) : dividend) / divisor;
116 int64_t
const mod =
static_cast<int64_t
>(uint64_t(-dividend) % uint64_t(divisor));
117 return mod ? divisor - mod : int64_t(0);
119 return static_cast<int64_t
>(uint64_t(dividend) % uint64_t(divisor));
122 #endif // QUERYENGINE_EXTRACTFROMTIME_H
const rapidjson::Value & field(const rapidjson::Value &obj, const char field[]) noexcept