TIMESTAMP_CMP_TIMESTAMPTZ function
TIMESTAMP_CMP_TIMESTAMPTZ compares the value of a timestamp expression with a timestamp with time zone expression. If the timestamp and timestamp with time zone values are identical, the function returns 0. If the timestamp is greater alphabetically, the function returns 1. If the timestamp with time zone is greater, the function returns –1.
Syntax
TIMESTAMP_CMP_TIMESTAMPTZ(timestamp, timestamptz)
Arguments
- timestamp
-
A TIMESTAMP column or an expression that implicitly converts to a timestamp.
- timestamptz
-
A TIMESTAMP column or an expression that implicitly converts to a timestamp with a time zone.
Return type
INTEGER