C++ SDK Documentation  12.0.0
Vertica::VInterval Class Reference

Representation of an Interval in Vertica. More...

Collaboration diagram for Vertica::VInterval:
Collaboration graph

Static Public Member Functions

static void breakUp (Interval i, int64 &days, int64 &hour, int64 &min, float &sec)
 Break up an Interval and set the arguments. More...
 
static Interval combine (int64 days, int64 hour, int64 min, double sec)
 Compute an Interval from its components. More...
 

Detailed Description

Representation of an Interval in Vertica.

Member Function Documentation

static void Vertica::VInterval::breakUp ( Interval  i,
int64 days,
int64 hour,
int64 min,
float &  sec 
)
inlinestatic

Break up an Interval and set the arguments.

Returns
None
Parameters
i]Vertica Interval.
days]Number of days in the interval.
hour]Number of hours in the interval.
min]Number of minutes in the interval.
sec]Number of seconds including fractions of a second.
static Interval Vertica::VInterval::combine ( int64  days,
int64  hour,
int64  min,
double  sec 
)
inlinestatic

Compute an Interval from its components.

Returns
the value of the specified Interval
Parameters
days]Number of days in the interval.
hour]Number of hours in the interval.
min]Number of minutes in the interval.
sec]Number of seconds including fractions of a second.