Cloud

make_time

The make_time() function creates a time value from separate hour, minute, and second fields.

Syntax

MAKE_TIME(hour, minute, second)

Arguments

  • hour: The hour, as an integer.

  • minute: The minute, as an integer.

  • second: The second, as a floating-point number (supports fractional seconds).

Return type

time

Examples

SELECT MAKE_TIME(13, 45, 30.5);
 make_time
------------
 13:45:30.5
(1 row)