5#ifndef TABLEAU_HYPER_TIMESTAMP_HPP
6#define TABLEAU_HYPER_TIMESTAMP_HPP
62 hyper_timestamp_t
getRaw() const noexcept;
103 friend struct internal::ValueInserter;
108 static constexpr uint64_t microseconds_per_day = 24ull * 60 * 60 * 1000 * 1000;
113 hyper_timestamp_t representation_ = 0;
125#include <hyperapi/impl/Timestamp.impl.hpp>
Timestamp(hyper_timestamp_t rawTimestamp, raw_t) noexcept
Creates a timestamp from a raw timestamp value encoded as microseconds since 1 January 4713 BC.
hyper_timestamp_t getRaw() const noexcept
Gets the raw timestamp value encoded as microseconds since 1 January 4713 BC.
Timestamp(Date date, Time time) noexcept
Creates a timestamp value with a date and a time component.
Timestamp() noexcept
Default constructor.
friend std::ostream & operator<<(std::ostream &os, const Timestamp &obj)
Stream output operator.
friend bool operator<(const Timestamp &a, const Timestamp &b) noexcept
Less than operator.
const Time & getTime() const noexcept
Gets the time component of the timestamp.
friend bool operator<=(const Timestamp &a, const Timestamp &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.
friend bool operator>=(const Timestamp &a, const Timestamp &b) noexcept
Greater or equal operator.
Marker struct for the raw timestamp constructor.
The primary namespace of the Hyper API for C++.