Advantage Database Server

HOUR()

Advantage Concepts

HOUR()

Advantage Concepts

This is the first topic This is the last topic  

HOUR()

Advantage Concepts

This is the first topic This is the last topic  

Advantage Expression Engine function that returns the hour portion of a time or timestamp value

 

Syntax

HOUR( <tTime> | <tTimeStamp> ) -> nHour

 

Parameters

<tTime>  A time value to convert OR

<tTimeStamp> A timestamp value to convert

 

Return Values

HOUR() returns a number in the range of 0 to 23 as an integer numeric value.  If the time or timestamp argument is empty, HOUR() returns zero.

 

Remarks

HOUR() is a time conversion function used to return the hour portion of a time or timestamp value.

 

Advantage Expression Engine functions can be used in expressions such as record filter expressions and index expressions. They are not necessarily scalars supported within SQL statements. For a list of supported SQL scalar functions, see Supported Scalar Functions.

 

See Also

MINUTE()

SECOND()