NebulaGraph CPP Client  release-3.8
Duration Struct Reference

Public Member Functions

 Duration (int32_t m, int64_t s, int32_t us)
 
int64_t years () const
 
int64_t monthsInYear () const
 
int64_t days () const
 
int64_t hours () const
 
int64_t minutes () const
 
int64_t secondsInMinute () const
 
int64_t microsecondsInSecond () const
 
Duration operator- () const
 
Duration operator+ (const Duration &rhs) const
 
Duration operator- (const Duration &rhs) const
 
Duration & addYears (int32_t y)
 
Duration & addQuarters (int32_t q)
 
Duration & addMonths (int32_t m)
 
Duration & addWeeks (int32_t w)
 
Duration & addDays (int64_t d)
 
Duration & addHours (int64_t h)
 
Duration & addMinutes (int64_t minutes)
 
Duration & addSeconds (int64_t s)
 
Duration & addMilliseconds (int64_t ms)
 
Duration & addMicroseconds (int32_t us)
 
bool operator< (const Duration &rhs) const =delete
 
bool operator== (const Duration &rhs) const
 
std::string toString () const
 

Public Attributes

int64_t seconds
 
int32_t microseconds
 
int32_t months
 

Detailed Description

Definition at line 17 of file Duration.h.


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