Days2YearsGregorian Function
Returns the number of Years the specified number of Days represents.

Unit
QESBPCSDateTime

Declaration
Function Days2YearsGregorian(const Value: Extended): Extended;

Description
Years are based on Gregorian Years - see DaysPerGregorianYear.

Parameters
Value Number of Days

Returns
the Number of Years (Gregorian)

Category
Date/Time Conversion Routines

Implementation

function Days2YearsGregorian (const Value: Extended): Extended;
begin
     Result := Value / DaysPerGregorianYear;
End;


HTML generated by Time2HELP
http://www.time2help.com