The isValidTimestamp() function

Verifies whether a Netezza Performance Server-encoded Timestamp value is valid and within range.

Description

The function has the following syntax:
inline bool isValidTimestamp(int64 encodedTimestamp)
The encodedTimestamp value is encoded in Netezza Performance Server Timestamp format.

Returns

False if encodedTimestamp < ENC_TIMESTAMP_MIN or encodedTimestamp > ENC_TIMESTAMP_MAX. Otherwise, the function returns true.