Hour

Description

Obtains the hour in a time value. The hour is based on a 24-hour clock.

Syntax

Hour ( time )

Argument

Description

time

The time value from which you want the hour


Return value

Integer. Returns an integer (00-23) containing the hour portion of time.

Examples

This expression returns the current hour:

Hour(Now())

This expression returns 19:

Hour(19:01:31)

See also

Minute

Now

Second