HOUR( ) Function

Example   See Also

Returns the hour portion from a DateTime expression.

Syntax

HOUR(tExpression)

Arguments

tExpression

Specifies a DateTime expression from which HOUR( ) returns the hour.

Returns

Numeric

Remarks

HOUR( ) returns a numeric value based on a 24 hour format, and is not affected by the current setting of SET HOURS. For example, if SET HOURS is 12 or 24, the following command returns 13:

? HOUR({^1998-02-16 1:00p})