The isValidTime() function

Verifies whether a decoded h:m:s:micros Time value is valid and within the Netezza Performance Server Time range.

Description

The function has the following syntax:
inline bool isValidTime(uint32 hour, uint32 minute, uint32 second, 
uint32 mcrs)

hour specifies the hour in the range of 0 to 23 inclusive.

minute specifies the minute in the range of 0 to 59 inclusive.

second specifies the second in the range of 0 to 59 inclusive.

mcrs specifies the microsecond in the range of 0 to 999999 inclusive.

Returns

False if hour > 23 or minute > 59 or second > 59 or mcrs > 999999. Otherwise, the function returns true.