System.DateUtils.SameDateTime
Delphi
function SameDateTime(const A, B: TDateTime): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall SameDateTime(const System::TDateTime A, const System::TDateTime B);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.DateUtils.pas System.DateUtils.hpp |
System.DateUtils | System.DateUtils |
Description
Indicates whether two TDateTime values represent the same year, month, day, hour, minute, second, and millisecond.
Call SameDateTime to determine whether the two TDateTime values specified by A and B represent the same time, down to the millisecond. SameDateTime returns True if the two specified values represent the same time, False otherwise.
Note: It is possible to create two TDateTime values that differ numerically when viewed as floating point types, but which represent the same year, month, day, hour, minute, second, and millisecond. SameDateTime allows applications to determine when two TDateTime values are the same even when their numeric values differ.
See Also