F_AGEINMINUTESN

<< F_AGEINMINUTES | IBExpert UDF Functions | F_AGEINSECONDS >>

F_AGEINMINUTESN

 

substitutable with DATEDIFF

  • function from adhoc
  • Compatible with UTF-8
  • Input TIMESTAMP (older) date optionally time 1, TIMESTAMP (newer) date optionally time 2
  • Output INTEGER difference in (integer) minutes between timestamp 1 and timestamp 2

if you want <null> if the first date is newer than the second date

Example

 SELECT NULL AS ISCORRECT, F_AGEINMINUTESN('01.10.2018 15:01:03','01.10.2018 14:15:03') FROM RDB$DATABASE;

Expected results:

 ISCORRECT F_AGEINMINUTESN 
 ========= ===============
 <null>             <null>

back to top of page
<< F_AGEINMINUTES | IBExpert UDF Functions | F_AGEINSECONDS >>