apache > db
Apache DB Project
Font size:      



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 or LONG VARCHAR. 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.

Previous Page
Next Page
Table of Contents