Show: Delphi C++
Display Preferences

System.DateUtils.SameTime

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SameTime(const A, B: TDateTime): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall SameTime(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 time of day, ignoring the date portion.

Call SameTime to determine whether the two TDateTime values specified by A and B represent the same time of day, ignoring the date portion. SameTime returns True if the two specified values occur on the same hour, minute, second, and millisecond, False otherwise.

Note: It is possible to create two TDateTime values whose time portions differ numerically when viewed as floating point types, but which represent the same hour, minute, second, and millisecond. SameTime allows applications to determine when two TDateTime values represent the same time, even when the fractional parts of the values differ.

See Also


Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance