The decodeTimestamp (struct timeval Output) function
Converts a Netezza Performance Server-encoded Timestamp value to struct timeval.
Description
The function
has the following syntax:
inline void decodeTimestamp(int64 encodedTimestamp, struct timeval*
result, bool* errorFlag = NULL)
encodedTimestamp specifies a value that is encoded in Netezza Performance Server Timestamp format.
result specifies the structure where the decoded Timestamp is written.
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).