Hyper API for C++
0.0.16638
Hyper client library for C++ applications
|
Go to the documentation of this file.
5 #ifndef TABLEAU_HYPER_DATE_HPP
6 #define TABLEAU_HYPER_DATE_HPP
11 #include <hyperapi/hyperapi.h>
33 Date(int32_t year, std::int16_t month, std::int16_t day) noexcept;
40 std::int16_t
getDay() const noexcept;
47 std::int16_t
getMonth() const noexcept;
54 std::int32_t
getYear() const noexcept;
66 hyper_date_t
getRaw() const noexcept;
70 friend
bool operator==(const
Date& a, const
Date& b) noexcept;
74 friend
bool operator>(const
Date& a, const
Date& b) noexcept;
78 friend
bool operator!=(const
Date& a, const
Date& b) noexcept {
return !(a == b); }
101 friend struct internal::ValueInserter;
110 explicit Date(hyper_date_t rawDate, raw_t) noexcept;
115 hyper_date_t m_representation = 0;
118 hyper_date_components_t m_date = {0, 0, 0};
122 #include <hyperapi/impl/Date.impl.hpp>
std::int16_t getDay() const noexcept
Gets the day.
std::string toString() const
Gets a string representation for debugging.
A timestamp data value with an offset to UTC.
hyper_date_t getRaw() const noexcept
Gets the raw date value (i.e., the Julian Day).
friend bool operator<(const Date &a, const Date &b) noexcept
Less than operator.
std::int16_t getMonth() const noexcept
Gets the month.
friend bool operator<=(const Date &a, const Date &b) noexcept
Less than or equal operator.
friend std::ostream & operator<<(std::ostream &os, const Date &obj)
Stream output operator.
std::int32_t getYear() const noexcept
Gets the year.
The primary namespace of the Hyper API for C++.
Date() noexcept
Default constructor.
friend bool operator>=(const Date &a, const Date &b) noexcept
Greater or equal operator.