RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.IncHour Function

Returns a date/time value shifted by a specified number of hours.

Pascal
function IncHour(const AValue: TDateTime; const ANumberOfHours: Int64 = 1): TDateTime;
C++
TDateTime IncHour(const TDateTime AValue, const Int64 ANumberOfHours = 1);

DateUtils

IncHour returns the value of the AValue parameter, incremented by ANumberOfHours hours. ANumberOfHours can be negative, to return a date and time N hours prior to AValue. 

 

DecodeDate 

EncodeDate 

ReplaceDate 

IncMonth 

IncDay 

IncMilliSecond 

IncMinute 

IncSecond 

IncWeek 

IncYear

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