The isValidEpochTimestamp() function

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

Description

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

Returns

False if encodedTimestamp < EPOCH_START_AS_TIMESTAMP or encodedTimestamp > EPOCH_END_AS_TIMESTAMP. Otherwise, the function returns true.