### Hour (x)

Basic and Crystal syntax.

##### Arguments

x is a Time value or DateTime value.

##### Returns

Whole Number

##### Action

The Hour function extracts the hour portion of a Time value and returns it as a whole number.

##### Typical uses

Use this function anytime you need to display just the hour portion of a Time value or to perform calculations based on hours.

##### Examples

The following examples are applicable to both Basic and Crystal syntax:

`Hour(CTime(10, 20, 22))`

Returns 10.

`Hour(CTime(10, 00, 30)) - Hour(CTime(6, 00, 00))`

Returns 4.

##### Comments

This function is designed to work like the Visual Basic function of the same name.

Seagate Software, Inc. http://www.seagatesoftware.com Please send comments to: techpubs@seagatesoftware.com