41 interval_t(int32_t months_p, int32_t days_p, int64_t micros_p);
#define KUZU_API
Definition api.h:25
Definition interval_t.h:66
static constexpr const int32_t MONTHS_PER_CENTURY
Definition interval_t.h:69
static constexpr const int32_t SECS_PER_HOUR
Definition interval_t.h:81
static KUZU_API std::string toString(interval_t interval)
static KUZU_API int32_t getIntervalPart(DatePartSpecifier specifier, interval_t ×tamp)
static constexpr const int64_t MICROS_PER_SEC
Definition interval_t.h:86
static constexpr const int32_t DAYS_PER_WEEK
Definition interval_t.h:73
static constexpr const int64_t MICROS_PER_DAY
Definition interval_t.h:89
static constexpr const int32_t MINS_PER_HOUR
Definition interval_t.h:79
static KUZU_API int64_t getMicro(const interval_t &val)
static constexpr const int64_t MICROS_PER_MINUTE
Definition interval_t.h:87
static constexpr const int64_t DAYS_PER_MONTH
only used for interval comparison/ordering purposes, in which case a month counts as 30 days
Definition interval_t.h:75
static KUZU_API int64_t getNanoseconds(const interval_t &val)
static constexpr const int64_t NANOS_PER_WEEK
Definition interval_t.h:99
static KUZU_API interval_t fromCString(const char *str, uint64_t len)
static KUZU_API void normalizeIntervalEntries(interval_t input, int64_t &months, int64_t &days, int64_t µs)
static constexpr const int32_t SECS_PER_WEEK
Definition interval_t.h:83
static KUZU_API const regex::RE2 & regexPattern1()
static constexpr const int64_t MICROS_PER_MONTH
Definition interval_t.h:91
static constexpr const int64_t MICROS_PER_WEEK
Definition interval_t.h:90
static constexpr const int32_t SECS_PER_MINUTE
Definition interval_t.h:78
static KUZU_API void tryGetDatePartSpecifier(std::string specifier, DatePartSpecifier &result)
static KUZU_API void addition(interval_t &result, uint64_t number, std::string specifierStr)
static constexpr const int64_t MICROS_PER_HOUR
Definition interval_t.h:88
static constexpr const int32_t MONTHS_PER_YEAR
Definition interval_t.h:71
static constexpr const int64_t NANOS_PER_MSEC
Definition interval_t.h:94
static constexpr const int32_t MONTHS_PER_MILLENIUM
Definition interval_t.h:68
static constexpr const int64_t MSECS_PER_SEC
Definition interval_t.h:77
static KUZU_API bool greaterThan(const interval_t &left, const interval_t &right)
static constexpr const int32_t MONTHS_PER_DECADE
Definition interval_t.h:70
static constexpr const int64_t NANOS_PER_SEC
Definition interval_t.h:95
static constexpr const int32_t SECS_PER_DAY
Definition interval_t.h:82
static constexpr const int64_t NANOS_PER_DAY
Definition interval_t.h:98
static constexpr const int64_t NANOS_PER_HOUR
Definition interval_t.h:97
static constexpr const int64_t MICROS_PER_MSEC
Definition interval_t.h:85
static constexpr const int64_t DAYS_PER_YEAR
Definition interval_t.h:76
static KUZU_API const regex::RE2 & regexPattern2()
static constexpr const int32_t MONTHS_PER_QUARTER
Definition interval_t.h:72
static constexpr const int64_t NANOS_PER_MICRO
Definition interval_t.h:93
static constexpr const int64_t NANOS_PER_MINUTE
Definition interval_t.h:96
static constexpr const int32_t HOURS_PER_DAY
Definition interval_t.h:80
enum KUZU_API DECADE
Definition interval_t.h:23
enum KUZU_API DAY
Definition interval_t.h:22
enum KUZU_API DatePartSpecifier
Definition interval_t.h:19
enum KUZU_API MILLENNIUM
Definition interval_t.h:25
enum KUZU_API MILLISECOND
Definition interval_t.h:28
enum KUZU_API MONTH
Definition interval_t.h:21
enum KUZU_API MICROSECOND
Definition interval_t.h:27
enum KUZU_API QUARTER
Definition interval_t.h:26
enum KUZU_API MINUTE
Definition interval_t.h:30
enum KUZU_API WEEK
Definition interval_t.h:32
enum KUZU_API CENTURY
Definition interval_t.h:24
enum KUZU_API HOUR
Definition interval_t.h:31
enum KUZU_API SECOND
Definition interval_t.h:29
Definition array_utils.h:7
Definition interval_t.h:35
bool operator<(const interval_t &rhs) const
interval_t operator-(const interval_t &rhs) const
timestamp_t operator+(const timestamp_t &rhs) const
bool operator>(const interval_t &rhs) const
bool operator==(const interval_t &rhs) const
interval_t(int32_t months_p, int32_t days_p, int64_t micros_p)
bool operator!=(const interval_t &rhs) const
date_t operator+(const date_t &rhs) const
interval_t operator/(const uint64_t &rhs) const
interval_t operator+(const interval_t &rhs) const
bool operator<=(const interval_t &rhs) const
bool operator>=(const interval_t &rhs) const
Definition timestamp_t.h:10