OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DateAdd.h File Reference
#include <cstdint>
#include <ctime>
#include "../Shared/funcannotations.h"
#include "ExtractFromTime.h"
+ Include dependency graph for DateAdd.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  DateaddField {
  daYEAR, daQUARTER, daMONTH, daDAY,
  daHOUR, daMINUTE, daSECOND, daMILLENNIUM,
  daCENTURY, daDECADE, daMILLISECOND, daMICROSECOND,
  daNANOSECOND, daWEEK, daQUARTERDAY, daWEEKDAY,
  daDAYOFYEAR, daINVALID
}
 

Functions

NEVER_INLINE DEVICE int64_t DateAdd (DateaddField field, int64_t number, int64_t timeval)
 
NEVER_INLINE DEVICE int64_t DateAddHighPrecision (DateaddField field, const int64_t number, const int64_t timeval, const int64_t scale)
 

Enumeration Type Documentation

Enumerator
daYEAR 
daQUARTER 
daMONTH 
daDAY 
daHOUR 
daMINUTE 
daSECOND 
daMILLENNIUM 
daCENTURY 
daDECADE 
daMILLISECOND 
daMICROSECOND 
daNANOSECOND 
daWEEK 
daQUARTERDAY 
daWEEKDAY 
daDAYOFYEAR 
daINVALID 

Definition at line 42 of file DateAdd.h.

42  {
43  daYEAR,
44  daQUARTER,
45  daMONTH,
46  daDAY,
47  daHOUR,
48  daMINUTE,
49  daSECOND,
51  daCENTURY,
52  daDECADE,
56  daWEEK,
58  daWEEKDAY,
60  daINVALID
61 };
Definition: DateAdd.h:47
Definition: DateAdd.h:43
Definition: DateAdd.h:56
Definition: DateAdd.h:46

Function Documentation

NEVER_INLINE DEVICE int64_t DateAdd ( DateaddField  field,
int64_t  number,
int64_t  timeval 
)
NEVER_INLINE DEVICE int64_t DateAddHighPrecision ( DateaddField  field,
const int64_t  number,
const int64_t  timeval,
const int64_t  scale 
)