#include <heavydbTypes.h>
Definition at line 340 of file heavydbTypes.h.
Referenced by operator*(), operator+(), operator-(), truncateToDay(), truncateToHours(), truncateToMicroseconds(), truncateToMilliseconds(), truncateToMinutes(), truncateToMonth(), truncateToSeconds(), and truncateToYear().
DEVICE Timestamp::Timestamp |
( |
int64_t |
timeval | ) |
|
|
inline |
DEVICE Timestamp::Timestamp |
( |
std::string_view const |
str | ) |
|
|
inline |
Definition at line 395 of file heavydbTypes.h.
References time, and Timestamp().
397 int64_t overflow_test =
static_cast<int64_t
>(
time) * static_cast<int64_t>(multiplier);
398 if (
time != 0 && overflow_test /
time != static_cast<int64_t>(multiplier)) {
399 throw std::overflow_error(
"Overflow in Timestamp multiplication!");
Definition at line 356 of file heavydbTypes.h.
References time, and Timestamp().
358 if (other.
time > 0) {
359 if (
time > (std::numeric_limits<int64_t>::max() - other.
time)) {
360 throw std::underflow_error(
"Underflow in Timestamp addition!");
363 if (
time < (std::numeric_limits<int64_t>::min() - other.
time)) {
364 throw std::overflow_error(
"Overflow in Timestamp addition!");
Definition at line 371 of file heavydbTypes.h.
References time, and Timestamp().
373 if (other.
time > 0) {
374 if (
time < (std::numeric_limits<int64_t>::min() + other.
time)) {
375 throw std::underflow_error(
"Underflow in Timestamp substraction!");
378 if (
time > (std::numeric_limits<int64_t>::max() + other.
time)) {
379 throw std::overflow_error(
"Overflow in Timestamp substraction!");
Definition at line 386 of file heavydbTypes.h.
References time.
388 if (other.
time == 0) {
389 throw std::runtime_error(
"Timestamp division by zero!");
Definition at line 341 of file heavydbTypes.h.
Referenced by getDay(), getHours(), getMicroseconds(), getMilliseconds(), getMinutes(), getMonth(), getNanoseconds(), getSeconds(), getYear(), DayTimeInterval::numStepsBetween(), YearMonthTimeInterval::numStepsBetween(), operator*(), operator+(), DayTimeInterval::operator+(), YearMonthTimeInterval::operator+(), operator-(), operator/(), operator<(), operator==(), Timestamp(), truncateToDay(), truncateToHours(), truncateToMicroseconds(), truncateToMilliseconds(), truncateToMinutes(), truncateToMonth(), truncateToSeconds(), and truncateToYear().
The documentation for this struct was generated from the following file:
- /home/jenkins-slave/workspace/core-os-doxygen/QueryEngine/heavydbTypes.h