TIME function

The TIME function returns a time from a value.

The argument must be a time, timestamp, or a valid string representation of a time or timestamp that is not a CLOB, LONG VARCHAR, or XML value. The result of the function is a time. If the argument can be null, the result can be null; if the argument is null, the result is the null value.

The other rules depend on the data type of the argument specified:
  • If the argument is a time: The result is that time.
  • If the argument is a timestamp: The result is the time part of the timestamp.
  • If the argument is a string: The result is the time represented by the string.


TIME ( expression )


values time(current_timestamp)

If the current time is 5:03 PM, the value returned is 17:03:00.