IsMidnight Function
Returns True if the Time portion represents Midnight, 12:00am.

Unit
QESBPCSDateTime

Declaration
Function IsMidnight(const DT: TDateTime): Boolean;

Parameters
DT Time to process.

Category
Date/Time Comparison

Implementation

function IsMidnight (const DT: TDateTime): Boolean;
begin
     Result := Frac (DT) = 0.0;
End;


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