F_AGEINHOURSTHRESHOLDN

<< F_AGEINHOURSTHRESHOLD | IBExpert UDF Functions | F_AGEINMINUTESTHRESHOLD >>

F_AGEINHOURSTHRESHOLDN

 
  • function from adhoc
  • Compatible with UTF-8
  • Input TIMESTAMP (older) date optionally time 1, TIMESTAMP (newer) date optionally time 2, INTEGER min. value, INTEGER min. value is used (0 = no, 1 = yes), INTEGER max. value, INTEGER max. value is used (0 = no, 1 = yes)
  • Output INTEGER difference in (integer) hours between timestamp 1 and timestamp 2

Example

 select null as ISCORRECT, F_AGEINHOURSTHRESHOLDN('02.10.2018 18:01:03', '01.10.2018 15:01:03', 5, 1, 10, 1)
 from RDB$DATABASE;

Expected results:

 ISCORRECT F_AGEINHOURSTHRESHOLDN
 ========= ======================
 <null>                    <null>

back to top of page
<< F_AGEINHOURSTHRESHOLD | IBExpert UDF Functions | F_AGEINMINUTESTHRESHOLD >>