TRUNC_TIMESTAMP scalar function
Read syntax diagramSkip visual syntax diagram
.-,--'DD'---------------------------.
>>-TRUNC_TIMESTAMP--(--expression--+-----------------------------------+--)-><
'-,--format-string--+-------------+-'
'-locale-name-'
The schema is SYSIBM.
The TRUNC_TIMESTAMP scalar function returns a TIMESTAMP that is the expression truncated to the unit specified by the format-string. If format-string is not specified, expression is truncated to the nearest day, as if 'DD' was specified for format-string.
-
SELECT TRUNC_TIMESTAMP(current time,"HH") ....
-