Show: Delphi C++
Display Preferences

System.DateUtils.DaySpan

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

extern DELPHI_PACKAGE double __fastcall DaySpan(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 days (including fractional days) between two specified TDateTime values.

Call DaySpan to obtain the difference, in days, between two TDateTime values. Unlike the DaysBetween function, which only counts whole days, DaySpan reports incomplete days as a fraction of an entire day.

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

See Also


Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance