The decodeTimestamp (time_t Output) function
Converts a Netezza Performance Server-encoded Timestamp value to a time_t value. The function drops the microseconds after the last whole minute of the timestamp value.
Description
inline void decodeTimestamp(int64 encodedTimestamp, int32* result,
bool* errorFlag = NULL)
encodedTmestamp specifies a value that is encoded in Netezza Performance Server Timestamp format.
result specifies the parameter in which to return the resulting time_t value, which is forced to be a signed int32 implementation.
errorFlag is an optional argument. If not NULL, it is set to true if isValidEpochTimestamp(encodedTimestamp) is false. Otherwise, it is set to false.
Throws
The function throws an opaque exception object if result is NULL or (errorFlag is NULL and isValidEpochTimestamp(encodedTimestamp) is false).