Hyper API for C++
0.0.16638
Hyper client library for C++ applications
|
Go to the documentation of this file.
5 #ifndef TABLEAU_HYPER_OFFSET_TIMESTAMP_HPP
6 #define TABLEAU_HYPER_OFFSET_TIMESTAMP_HPP
52 std::chrono::minutes
getOffset() const noexcept;
59 hyper_timestamp_t
getRaw() const noexcept;
100 friend struct internal::ValueInserter;
107 static constexpr uint64_t microseconds_per_minute = 60 * 1000 * 1000;
111 static constexpr uint64_t microseconds_per_day = 24ull * 60 * microseconds_per_minute;
118 explicit OffsetTimestamp(hyper_timestamp_t rawTimestamp, raw_t) noexcept;
123 hyper_timestamp_t m_representation = 0;
135 std::chrono::minutes m_offset{0};
139 #include <hyperapi/impl/OffsetTimestamp.impl.hpp>
friend bool operator>=(const OffsetTimestamp &a, const OffsetTimestamp &b) noexcept
Greater or equal operator.
const Time & getTime() const noexcept
Gets the time component of the timestamp.
OffsetTimestamp() noexcept
Default constructor.
A timestamp data value with an offset to UTC.
hyper_timestamp_t getRaw() const noexcept
Gets the raw timestamp value encoded as microseconds since 1 January 4713 BC.
const Date & getDate() const noexcept
Gets the date component of the timestamp.
friend bool operator<=(const OffsetTimestamp &a, const OffsetTimestamp &b) noexcept
Less than or equal operator.
std::chrono::minutes getOffset() const noexcept
Gets the offset to UTC of the timestamp in minutes.
std::string toString() const
Returns a string representation for debugging.
friend std::ostream & operator<<(std::ostream &os, const OffsetTimestamp &obj)
Stream output operator.
The primary namespace of the Hyper API for C++.
friend bool operator<(const OffsetTimestamp &a, const OffsetTimestamp &b) noexcept
Less than operator.