System.DateUtils.WeekSpan
Delphi
function WeekSpan(const ANow, AThen: TDateTime): Double;
C++
extern DELPHI_PACKAGE double __fastcall WeekSpan(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 weeks (including fractional weeks) between two specified TDateTime values.
Call WeekSpan to obtain the difference, in weeks, between two TDateTime values. Unlike the WeeksBetween function, which only counts whole weeks, WeekSpan reports incomplete weeks as a fraction of an entire week.
WeekSpan always returns a positive result and therefore the parameter values are interchangeable.
See Also