Default language.

Information
Limited support BMC provides limited support for this version of the product. As a result, BMC no longer accepts comments in this space. If you encounter problems with the product version or the space, contact BMC Support.BMC recommends upgrading to the latest version of the product. To see documentation for that version, see BMC AMI Load for Db2 13.1.

MINUTE


The MINUTE function accepts a single argument and returns an integer data type.

MINUTE.png

expression must return one of the following built-in data types:

  • TIMESTAMP
  • TIMESTAMP WITH TIMEZONE
  • TIMESTAMP DURATIONA timestamp duration occurs as the result of subtracting two timestamps of precision=6. The result is the minute portion of the derived timestamp or timestamp duration.
Warning

Important

A CHAR/VARCHAR argument is not accepted unless converted by a TIMESTAMP or TIMESTAMP_TZ function.

If the argument can be null, the result can be null; if the argument value is null, the result is the null value.

Information
Example
MINUTE (TIME ('13.30.05'))

results in an integer of value = 30

It is invalid to specify MINUTE (’13.30.05’) because the argument is of type CHAR.

Information
Example
MINUTE (TIME ('13.30.05')-TIME ('12.02.01'))

results in an integer of value = 28


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC AMI Load for Db2 12.1