Datetime Functions - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

"TRIM Function" (page 418)
"UCASE Function" (page 419)
"UPPER Function" (page 427)
"UPSHIFT Function" (page 428)
See the individual entry for the function.

Datetime Functions

These functions use either a datetime value expression as an argument or return a result of
datetime data type:
"ADD_MONTHS Function" (page 288)
"CONVERTTIMESTAMP Function" (page 307)
"CURRENT Function" (page 312)
"CURRENT_DATE Function" (page 313)
"CURRENT_TIME Function" (page 315)
"CURRENT_TIMESTAMP Function" (page 316)
"DATE_ADD Function" (page 318)
"DATE_SUB Function" (page 319)
"DATE_PART Function (of an interval)" (page 322)
"DATE_PART Function (of a timestamp)" (page 323)
"DATE_TRUNC Function" (page 324)
"DATEADD Function" (page 319)
"DATEDIFF Function" (page 321)
"DATEFORMAT Function" (page 322)
"DAY Function" (page 325)
"DAYNAME Function" (page 326)
"DAYOFMONTH Function" (page 327)
"DAYOFWEEK Function" (page 328)
Removes leading or trailing characters from a character
string.
Upshifts single-byte characters. You can also use UPSHIFT
or UPPER.
Upshifts single-byte characters. You can also use UPSHIFT
or UCASE.
Upshifts single-byte characters. You can also use UPPER
or UCASE.
Adds the integer number of months specified by
intr_expr to datetime_expr and normalizes the
result.
Converts a Julian timestamp to a TIMESTAMP value.
Returns the current timestamp. You can also use the
"CURRENT_TIMESTAMP
Returns the current date.
Returns the current time.
Returns the current timestamp. You can also use the
"CURRENT
Function".
Adds the interval specified by interval_expression
to datetime_expr.
Subtracts the specified interval_expression from
datetime_expr.
Extracts the datetime field specified by text from the
interval value specified by interval and returns the
result as an exact numeric value.
Extracts the datetime field specified by text from the
datetime value specified by timestamp and returns the
result as an exact numeric value.
Returns the date with the time portion of the day
truncated.
Adds the interval specified by datepart and num_expr
to datetime_expr.
Returns the integer value for the number of datepart
units of time between startdate and enddate.
Formats a datetime value for display purposes.
Returns an integer value in the range 1 through 31 that
represents the corresponding day of the month. You can
also use DAYOFMONTH.
Returns the name of the day of the week from a date or
timestamp expression.
Returns an integer value in the range 1 through 31 that
represents the corresponding day of the month. You can
also use DAY.
Returns an integer value in the range 1 through 7 that
represents the corresponding day of the week.
Function".
Categories
281

Advertisement

Table of Contents
loading

Table of Contents