18 explicit operator int64_t()
const;
107 int& hour_offset,
int& minute_offset);
110 const std::string& typeID =
"TIMESTAMP") {
111 return "Error occurred during parsing " + typeID +
". Given: \"" + std::string(str, len) +
112 "\". Expected format: (YYYY-MM-DD hh:mm:ss[.zzzzzz][+-TT[:tt]])";
#define KUZU_API
Definition api.h:25
Definition timestamp_t.h:65
static KUZU_API timestamp_t fromEpochMicroSeconds(int64_t epochMs)
static KUZU_API bool tryParseUTCOffset(const char *str, uint64_t &pos, uint64_t len, int &hour_offset, int &minute_offset)
static KUZU_API timestamp_t fromEpochSeconds(int64_t sec)
static KUZU_API timestamp_t trunc(DatePartSpecifier specifier, timestamp_t &date)
static std::string getTimestampConversionExceptionMsg(const char *str, uint64_t len, const std::string &typeID="TIMESTAMP")
Definition timestamp_t.h:109
static KUZU_API dtime_t getTime(timestamp_t timestamp)
static KUZU_API int64_t getEpochMilliSeconds(const timestamp_t ×tamp)
static KUZU_API int64_t getEpochNanoSeconds(const timestamp_t ×tamp)
static KUZU_API int64_t getEpochSeconds(const timestamp_t ×tamp)
static KUZU_API timestamp_t fromDateTime(date_t date, dtime_t time)
static KUZU_API int32_t getTimestampPart(DatePartSpecifier specifier, timestamp_t ×tamp)
static KUZU_API void convert(timestamp_t timestamp, date_t &out_date, dtime_t &out_time)
static KUZU_API timestamp_t fromCString(const char *str, uint64_t len)
static KUZU_API bool tryConvertTimestamp(const char *str, uint64_t len, timestamp_t &result)
static KUZU_API date_t getDate(timestamp_t timestamp)
static KUZU_API timestamp_t getCurrentTimestamp()
static KUZU_API timestamp_t fromEpochMilliSeconds(int64_t ms)
static KUZU_API timestamp_t fromEpochNanoSeconds(int64_t ns)
static KUZU_API std::string toString(timestamp_t timestamp)
enum KUZU_API DatePartSpecifier
Definition interval_t.h:14
Definition alter_type.h:5
Definition interval_t.h:30
Definition timestamp_t.h:49
Definition timestamp_t.h:46
Definition timestamp_t.h:52
Definition timestamp_t.h:10
bool operator<(const timestamp_t &rhs) const
timestamp_t operator-(const interval_t &interval) const
interval_t operator-(const timestamp_t &rhs) const
bool operator==(const timestamp_t &rhs) const
timestamp_t(int64_t value_p)
bool operator>(const timestamp_t &rhs) const
bool operator<=(const date_t &rhs) const
timestamp_t & operator=(int64_t value_p)
bool operator>=(const timestamp_t &rhs) const
bool operator!=(const timestamp_t &rhs) const
bool operator!=(const date_t &rhs) const
bool operator<(const date_t &rhs) const
timestamp_t operator+(const interval_t &interval) const
bool operator<=(const timestamp_t &rhs) const
bool operator>(const date_t &rhs) const
bool operator>=(const date_t &rhs) const
bool operator==(const date_t &rhs) const
Definition timestamp_t.h:43