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

Hour ( time )
Argument  | 
Description  | 
|---|---|
time  | 
The time from which you want to obtain the hour  | 
Integer. Returns an integer (00 to 23) whose value is the hour portion of time. If time is null, Hour returns null.
This statement returns the current hour:
Hour(Now())
This statement returns 19:
Hour(19:01:31)
| Copyright © 2004. Sybase Inc. All rights reserved. | 
 
 | 
|