The isValidEpochDate() function

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

Description

The function has the following syntax:
inline bool isValidEpochDate(int32 encodedDate)
The encodedDate is encoded in Netezza Performance Server Date format.

Returns

False if encodedDate < EPOCH_START_AS_DATE or encodedDate > EPOCH_END_AS_DATE. Otherwise, the value returns true.