1.1.1

Table Of Contents
If the specied number is zero (0), the result of this function is zero.
The data type of the returned value is a DOUBLE PRECISION number.
Syntax
TAN ( number )
TANH function
The TANH function returns the hyperbolic tangent of a specied number.
The specied number is the angle, in radians, that you want the hyperbolic tangent for. The specied number
must be a DOUBLE PRECISION on page 629 number.
If the specied number is NULL, the result of this function is NULL.
If the specied number is zero (0), the result of this function is zero.
The data type of the returned value is a DOUBLE PRECISION number.
Syntax
TANH ( number )
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 specied:
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.
Syntax
TIME ( expression )
Example
values time(current_timestamp)
If the current time is 5:03 PM, the value returned is 17:03:00.
TIMESTAMP function
The TIMESTAMP function returns a timestamp from a value or a pair of values.
The rules for the arguments depend on whether the second argument is specied:
If only one argument is specied: It must be a timestamp, a valid string representation of a timestamp, or a
string of length 14 that is not a CLOB, LONG VARCHAR, or XML value. A string of length 14 must be a
string of digits that represents a valid date and time in the form yyyyxxddhhmmss, where yyyy is the year, xx is
the month, dd is the day, hh is the hour, mm is the minute, and ss is the seconds.
If both arguments are specied: The rst argument must be a date or a valid string representation of a date and
the second argument must be a time or a valid string representation of a time.
585
SQL Language Reference