DB2 Scalar functions - ADD_MINUTES
The ADD_MINUTES function returns a timestamp value that represents the first argument plus a specified number of minutes.
The schema is SYSIBM.
The result of the function is a timestamp with the same precision as expression, if expression is a timestamp. Otherwise, the result is a TIMESTAMP(12). If any argument can be null, the result can be null; if any argument is null, the result is the null value.
SET :ADD_MINUTE = ADD_MINUTES(CURRENT TIMESTAMP, 1)
SET :ADD_MINUTE = ADD_MINUTES(:TIMESTAMP,3)
SET :TIMESTAMPHV = TIMESTAMP '2008-2-28-23.58.59' + 4 MINUTES SET :TIMESTAMPHV = ADD_MINUTES( TIMESTAMP '2008-2-28-23.58.59', 4)
SET :TIMESTAMPHV = TIMESTAMP '2008-2-28-23.58.59' + 1442 MINUTES SET :TIMESTAMPHV = ADD_MINUTES(TIMESTAMP '2008-2-28-23.58.59', 1442)
SET :ADD_MINUTE = ADD_MINUTES(:TIMESTAMP,-3)