RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.HourOfTheYear Function

Returns the number of hours between a specified TDateTime value and 12:00 AM of the first day of the year.

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

DateUtils

Call HourOfTheYear to obtain the number of complete hours between AValue and 12:00 AM on Jan 1 of the year that includes AValue. 

 

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