Call the HourOf function to obtain the hour of the day represented by a specified TDateTime value.
HourOf returns an integer value from 0 through 23 only.
Declaration: Function HourOf( const AValue : TDateTime) : Word;
Function HourOfTheDay( const AValue : TDateTime) : Word;
An example of its use.
HourOf has the same functionality as the HourOfTheDay function.