System.DateUtils.SecondSpan

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

extern DELPHI_PACKAGE double __fastcall SecondSpan(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 seconds (including fractions thereof) between two specified TDateTime values.

Call SecondSpan to obtain the difference, in seconds, between two TDateTime values. Unlike the SecondsBetween function, which only counts entire seconds, SecondSpan reports incomplete seconds as a fraction of an entire second.

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

See Also


Code Examples