#include <heavydbTypes.h>
Definition at line 698 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 753 of file heavydbTypes.h.
References time, and Timestamp().
755 int64_t overflow_test =
static_cast<int64_t
>(
time) * static_cast<int64_t>(multiplier);
756 if (
time != 0 && overflow_test /
time != static_cast<int64_t>(multiplier)) {
757 throw std::overflow_error(
"Overflow in Timestamp multiplication!");
Definition at line 714 of file heavydbTypes.h.
References time, and Timestamp().
716 if (other.
time > 0) {
717 if (
time > (std::numeric_limits<int64_t>::max() - other.
time)) {
718 throw std::underflow_error(
"Underflow in Timestamp addition!");
721 if (
time < (std::numeric_limits<int64_t>::min() - other.
time)) {
722 throw std::overflow_error(
"Overflow in Timestamp addition!");
Definition at line 729 of file heavydbTypes.h.
References time, and Timestamp().
731 if (other.
time > 0) {
732 if (
time < (std::numeric_limits<int64_t>::min() + other.
time)) {
733 throw std::underflow_error(
"Underflow in Timestamp substraction!");
736 if (
time > (std::numeric_limits<int64_t>::max() + other.
time)) {
737 throw std::overflow_error(
"Overflow in Timestamp substraction!");
Definition at line 744 of file heavydbTypes.h.
References time.
746 if (other.
time == 0) {
747 throw std::runtime_error(
"Timestamp division by zero!");
std::string Timestamp::toString |
( |
| ) |
const |
|
inline |
Definition at line 699 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(), toString(), 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