Kùzu C++ API
Loading...
Searching...
No Matches
kuzu::common::Timestamp Class Reference

#include <timestamp_t.h>

Static Public Member Functions

static KUZU_API timestamp_t fromCString (const char *str, uint64_t len)
 
static KUZU_API std::string toString (timestamp_t timestamp)
 
static KUZU_API date_t getDate (timestamp_t timestamp)
 
static KUZU_API dtime_t getTime (timestamp_t timestamp)
 
static KUZU_API timestamp_t fromDateTime (date_t date, dtime_t time)
 
static KUZU_API bool tryConvertTimestamp (const char *str, uint64_t len, timestamp_t &result)
 
static KUZU_API void convert (timestamp_t timestamp, date_t &out_date, dtime_t &out_time)
 
static KUZU_API timestamp_t fromEpochMicroSeconds (int64_t epochMs)
 
static KUZU_API timestamp_t fromEpochMilliSeconds (int64_t ms)
 
static KUZU_API timestamp_t fromEpochSeconds (int64_t sec)
 
static KUZU_API timestamp_t fromEpochNanoSeconds (int64_t ns)
 
static KUZU_API int32_t getTimestampPart (DatePartSpecifier specifier, timestamp_t &timestamp)
 
static KUZU_API timestamp_t trunc (DatePartSpecifier specifier, timestamp_t &date)
 
static KUZU_API int64_t getEpochNanoSeconds (const timestamp_t &timestamp)
 
static KUZU_API int64_t getEpochMilliSeconds (const timestamp_t &timestamp)
 
static KUZU_API int64_t getEpochSeconds (const timestamp_t &timestamp)
 
static KUZU_API bool tryParseUTCOffset (const char *str, uint64_t &pos, uint64_t len, int &hour_offset, int &minute_offset)
 
static std::string getTimestampConversionExceptionMsg (const char *str, uint64_t len, const std::string &typeID="TIMESTAMP")
 
static KUZU_API timestamp_t getCurrentTimestamp ()
 

Member Function Documentation

◆ convert()

static KUZU_API void kuzu::common::Timestamp::convert ( timestamp_t timestamp,
date_t & out_date,
dtime_t & out_time )
static

◆ fromCString()

static KUZU_API timestamp_t kuzu::common::Timestamp::fromCString ( const char * str,
uint64_t len )
static

◆ fromDateTime()

static KUZU_API timestamp_t kuzu::common::Timestamp::fromDateTime ( date_t date,
dtime_t time )
static

◆ fromEpochMicroSeconds()

static KUZU_API timestamp_t kuzu::common::Timestamp::fromEpochMicroSeconds ( int64_t epochMs)
static

◆ fromEpochMilliSeconds()

static KUZU_API timestamp_t kuzu::common::Timestamp::fromEpochMilliSeconds ( int64_t ms)
static

◆ fromEpochNanoSeconds()

static KUZU_API timestamp_t kuzu::common::Timestamp::fromEpochNanoSeconds ( int64_t ns)
static

◆ fromEpochSeconds()

static KUZU_API timestamp_t kuzu::common::Timestamp::fromEpochSeconds ( int64_t sec)
static

◆ getCurrentTimestamp()

static KUZU_API timestamp_t kuzu::common::Timestamp::getCurrentTimestamp ( )
static

◆ getDate()

static KUZU_API date_t kuzu::common::Timestamp::getDate ( timestamp_t timestamp)
static

◆ getEpochMilliSeconds()

static KUZU_API int64_t kuzu::common::Timestamp::getEpochMilliSeconds ( const timestamp_t & timestamp)
static

◆ getEpochNanoSeconds()

static KUZU_API int64_t kuzu::common::Timestamp::getEpochNanoSeconds ( const timestamp_t & timestamp)
static

◆ getEpochSeconds()

static KUZU_API int64_t kuzu::common::Timestamp::getEpochSeconds ( const timestamp_t & timestamp)
static

◆ getTime()

static KUZU_API dtime_t kuzu::common::Timestamp::getTime ( timestamp_t timestamp)
static

◆ getTimestampConversionExceptionMsg()

static std::string kuzu::common::Timestamp::getTimestampConversionExceptionMsg ( const char * str,
uint64_t len,
const std::string & typeID = "TIMESTAMP" )
inlinestatic

◆ getTimestampPart()

static KUZU_API int32_t kuzu::common::Timestamp::getTimestampPart ( DatePartSpecifier specifier,
timestamp_t & timestamp )
static

◆ toString()

static KUZU_API std::string kuzu::common::Timestamp::toString ( timestamp_t timestamp)
static

◆ trunc()

static KUZU_API timestamp_t kuzu::common::Timestamp::trunc ( DatePartSpecifier specifier,
timestamp_t & date )
static

◆ tryConvertTimestamp()

static KUZU_API bool kuzu::common::Timestamp::tryConvertTimestamp ( const char * str,
uint64_t len,
timestamp_t & result )
static

◆ tryParseUTCOffset()

static KUZU_API bool kuzu::common::Timestamp::tryParseUTCOffset ( const char * str,
uint64_t & pos,
uint64_t len,
int & hour_offset,
int & minute_offset )
static

The documentation for this class was generated from the following file: