System.DateUtils.MilliSecondSpan

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function MilliSecondSpan(const ANow, AThen: TDateTime): Double;

C++

extern DELPHI_PACKAGE double __fastcall MilliSecondSpan(const System::TDateTime ANow, const System::TDateTime AThen);

Properties

Type Visibility Source Unit Parent
function public
System.DateUtils.pas
System.DateUtils.hpp
System.DateUtils System.DateUtils

Description

Returns the number of milliseconds between two specified TDateTime values.

Call MilliSecondSpan to obtain the difference, in milliseconds, between two TDateTime values. MilliSecondSpan returns the same value as MilliSecondsBetween, but as a floating-point type instead of an integer.

MilliSecondSpan always returns a positive result and therefore the parameter values are interchangeable.

See Also


Code Examples