RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.IncSecond Function

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

Pascal
function IncSecond(const AValue: TDateTime; const ANumberOfSeconds: Int64 = 1): TDateTime;
C++
TDateTime IncSecond(const TDateTime AValue, const Int64 ANumberOfSeconds = 1);

IncSecond returns the value of the AValue parameter, incremented by ANumberOfSeconds seconds. ANumberOfSeconds can be negative, to return a date and time N seconds prior to AValue. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!