Hyper API for C++
0.0.16638
Hyper client library for C++ applications
|
Go to the documentation of this file.
5 #ifndef TABLEAU_HYPER_TIMESTAMP_HPP
6 #define TABLEAU_HYPER_TIMESTAMP_HPP
50 hyper_timestamp_t
getRaw() const noexcept;
91 friend struct internal::ValueInserter;
98 static constexpr uint64_t microseconds_per_day = 24ull * 60 * 60 * 1000 * 1000;
105 explicit Timestamp(hyper_timestamp_t rawTimestamp, raw_t) noexcept;
110 hyper_timestamp_t m_representation = 0;
122 #include <hyperapi/impl/Timestamp.impl.hpp>
friend bool operator<(const Timestamp &a, const Timestamp &b) noexcept
Less than operator.
const Date & getDate() const noexcept
Gets the date component of the timestamp.
Timestamp() noexcept
Default constructor.
const Time & getTime() const noexcept
Gets the time component of the timestamp.
friend bool operator>=(const Timestamp &a, const Timestamp &b) noexcept
Greater or equal operator.
std::string toString() const
Returns a string representation for debugging.
friend std::ostream & operator<<(std::ostream &os, const Timestamp &obj)
Stream output operator.
The primary namespace of the Hyper API for C++.
hyper_timestamp_t getRaw() const noexcept
Gets the raw timestamp value encoded as microseconds since 1 January 4713 BC.
friend bool operator<=(const Timestamp &a, const Timestamp &b) noexcept
Less than or equal operator.