F_ADDMINUTE
<< F_ADDHOUR | IBExpert UDF Functions | F_ADDSECOND >>
F_ADDMINUTE
substitutable with DATEADD
- function from adhoc
- Compatible with UTF-8
- Input TIMESTAMP date optionally time, INTEGER minutes to add
- Output TIMESTAMP adds minutes to timestamp
If parameter 2 is negative, minutes to subtract.
Example
select cast('01.10.2018 15:06:01' as timestamp) as ISCORRECT, F_ADDMINUTE('01.10.2018 15:03:01', 3) from RDB$DATABASE union select cast('01.10.2018 15:00:01' as timestamp) as ISCORRECT, F_ADDMINUTE('01.10.2018 15:03:01', -3) from RDB$DATABASE union select null as ISCORRECT, F_ADDMINUTE(null, null) from RDB$DATABASE;
Expected results:
ISCORRECT ========================= ========================= <null> <null> 2018-10-01 15:00:01.0000 2018-10-01 15:00:01.0000 2018-10-01 15:06:01.0000 2018-10-01 15:06:01.0000
back to top of page
<< F_ADDHOUR | IBExpert UDF Functions | F_ADDSECOND >>