RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.ApproxDaysPerYear Variable

ApproxDaysPerYear represents the approximate number of days in a year, over a normal 4 year period.

Pascal
ApproxDaysPerYear: Double = 365.25;
C++
Double ApproxDaysPerYear = 365.25;

Use ApproxDaysPerYear when calculating the number of days in a large number of years. This approximation is accurate for the next century. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!