RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.HourOfTheDay Function

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

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

DateUtils

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

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

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