SubtractHrs Function
Subtracts a Floating Point amount of Hours from a Given Date/Time.

Unit
QESBPCSDateTime

Declaration
Function SubtractHrs(const DT: TDateTime; const Hrs: Extended): TDateTime;

Parameters
DT Date/Time to process.
Hrs Number of Hours to Subtract - can be negative.

Category
Date/Time Arithmetic Routines

Implementation

function SubtractHrs (const DT: TDateTime; const Hrs: Extended): TDateTime;
begin
     Result := AddHrs (DT, -1 * Hrs);
End;


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