RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.HourOf Function

Returns the hour of the day represented by a TDateTime value.

Pascal
function HourOf(const AValue: TDateTime): Word;
C++
Word HourOf(const TDateTime AValue);

DateUtils

Call HourOf to obtain the hour of the day represented by a specified TDateTime value. HourOf returns a value between 0 and 23.

Note: HourOf returns the same value as the HourOfTheDay function.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!