Public member functions documentation
- NzaeTimestampField addTime(const NzaeTimeField &time) const
- Constructs a TimestampField by adding time.
- NzaeTimestampField addTimeTz(const NzaeTimeTzField &time) const
- Constructs a TimestampField by adding timetz.
- NzaeIntervalField age(const NzaeDateField &x) const
- Constructs an IntervalField by subtracting dates.
- void decodeDate(uint8_t *month, uint8_t *day, uint16_t *year, bool *errorFlag=NULL) const
- Converts a Netezza-encoded Date value to m/d/y.
- void decodeDate(time_t *result, bool *errorFlag=NULL) const
- Converts a Netezza-encoded Date value to time_t and treats encoded date as if it is UTC. The resulting time_t represents the time 00:00:00 on the specified date.
- void decodeDate(struct tm *result, bool *errorFlag=NULL) const
- Converts a Netezza-encoded Date value to struct tm. The resulting tm represents the time 00:00:00 on the specified date, with an unknown daylight saving time status.
- void encodeDate(uint32_t month, uint32_t day, uint32_t year, bool *errorFlag=NULL)
- Converts a m/d/y Date value to a Netezza-encoded Date.
- void encodeDate(time_t date, bool *errorFlag=NULL)
- Converts a time_t Date value to a Netezza-encoded Date. Drops the hours, minutes and seconds elapsed after the last whole day in the time_t value.
- void encodeDate(const struct tm &date, bool *errorFlag=NULL)
- Converts a struct tm value to a Netezza-encoded Date. Uses only the tm.tm_year, tm.tm_mon and tm.tm_day fields of the date, ignoring the other fields. It is recommended that the date passes isValidTimeStruct(), but it is not required.
- void fromString(std::string str)
- Constructs the field from the string.
- bool isValidDate() const
-
Specifies whether a Netezza-encoded Date value is valid and within the Netezza Date range.
- bool isValidEpochDate() const
- Specifies whether a Netezza-encoded Date value is valid and within the time_t Epoch range.
- NzaeDateField()
- Constructs a NULL date field.
- NzaeDateField(const NzaeDateField &field)
- Constructs a date field with value field.
- NzaeDateField(const NzaeTimestampField &field)
- Constructs a date field with value field.
- NzaeDateField(int32_t val)
- Constructs a date field with value val.
- operator int32_t() const
- Returns an encoded field value.
- operator NzaeTimestampField() const
- Returns a timestamp field value.
- NzaeDateField& operator=(int32_t val)
- Assigns the value of the argument to a field object
- NzaeDateField& operator=(const NzaeTimestampField &field)
- Assigns the value of the argument to a field object.
- NzaeDateField& operator=(NzaeField &field)
- Assigns the value of the argument to a field object.
- NzaeDateField& operator=(const NzaeDateField &field)
- Assigns the value of the argument to a field object.
- std::string toString() const
- Returns the string representation of the field.
- virtual NzaeDataTypes::Types type() const
- Returns the type of the field.