Entrypoint hour compatible with UTF-8
Input TIMESTAMP date optionally time Output INTEGER hours of the timestamp
If you entered only date, the hour is = 0. TestSQL SELECT 14 AS ISCORRECT, F_HOUR('23.08.2004 14:38:12') FROM RDB$DATABASE; SELECT NULL AS ISCORRECT, F_HOUR(NULL) FROM RDB$DATABASE;