IncSecond function ------------------------------------------------------------------- Returns a date/time value shifted by a specified number of seconds.UnitDateUtilsCategorydatetime routinesDelphi syntax:function IncSecond(const AValue: TDateTime; const ANumberOfSeconds: Int64 = 1): TDateTime;DescriptionIncSecond 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.
DateTimePicker2.DateTime:=IncSecond(now,-5);
-------------------------------------------------------------------
Returns a date/time value shifted by a specified number of seconds.UnitDateUtilsCategorydatetime routinesDelphi syntax:function IncSecond(const AValue: TDateTime; const ANumberOfSeconds: Int64 = 1): TDateTime;DescriptionIncSecond 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.