SubtractSecs Function
Subtracts a Floating Point amount of Seconds from a Given Date/Time.

Unit
QESBPCSDateTime

Declaration
Function SubtractSecs(const DT: TDateTime; const Secs: Extended): TDateTime;

Parameters
DT Date/Time to process.
Secs Number of Seconds to Subtract - can be negative.

Category
Date/Time Arithmetic Routines

Implementation

function SubtractSecs (const DT: TDateTime; const Secs: Extended): TDateTime;
begin
     Result := AddSecs (DT, -1 * Secs);
End;


HTML generated by Time2HELP
http://www.time2help.com