5#ifndef TABLEAU_HYPER_OFFSET_TIMESTAMP_HPP
6#define TABLEAU_HYPER_OFFSET_TIMESTAMP_HPP
71 hyper_timestamp_t
getRaw() const noexcept;
112 friend struct internal::ValueInserter;
117 static constexpr uint64_t microseconds_per_minute = 60 * 1000 * 1000;
121 static constexpr uint64_t microseconds_per_day = 24ull * 60 * microseconds_per_minute;
126 hyper_timestamp_t representation_ = 0;
138 std::chrono::minutes offset_{0};
142#include <hyperapi/impl/OffsetTimestamp.impl.hpp>
A timestamp data value with an offset to UTC.
std::chrono::minutes getOffset() const noexcept
Gets the offset to UTC of the timestamp in minutes.
friend std::ostream & operator<<(std::ostream &os, const OffsetTimestamp &obj)
Stream output operator.
OffsetTimestamp() noexcept
Default constructor.
friend bool operator<=(const OffsetTimestamp &a, const OffsetTimestamp &b) noexcept
Less than or equal operator.
std::string toString() const
Returns a string representation for debugging.
const Date & getDate() const noexcept
Gets the date component of the timestamp.
OffsetTimestamp(hyper_timestamp_t rawTimestamp, raw_t) noexcept
Creates a timestamp from a raw timestamp value encoded as microseconds since 1 January 4713 BC.
friend bool operator<(const OffsetTimestamp &a, const OffsetTimestamp &b) noexcept
Less than operator.
hyper_timestamp_t getRaw() const noexcept
Gets the raw timestamp value encoded as microseconds since 1 January 4713 BC.
friend bool operator>=(const OffsetTimestamp &a, const OffsetTimestamp &b) noexcept
Greater or equal operator.
OffsetTimestamp(Date date, Time time, std::chrono::minutes offset) noexcept
Creates a timestamp value with a date, time, and offset component.
const Time & getTime() const noexcept
Gets the time component of the timestamp.
Marker struct for the raw timestamp constructor.
The primary namespace of the Hyper API for C++.