Return the number of days in the year in which a date occurs.
Source position: dateutil.inc line 120
| function DaysInYear( | 
| const AValue: TDateTime | 
| ):Word; | 
| AValue | 
 | Date in year of which to calculate the number of days. | 
Number of days in the year in which AValue occurs.
daysInYear returns the number of days in the year part of AValue. The return value is either 365 or 366.
| 
 | Returns the number of weeks in a given year. | |
| 
 | Returns the number of weeks in the year, given a date. | |
| 
 | Number of days in a particular year. | |
| 
 | Return the number of days in the month in which a date occurs. | |
| 
 | Number of days in a month of a certain year. | 
Program Example14; { This program demonstrates the DaysInYear function } Uses SysUtils,DateUtils; Var Y : Word; Begin or:=1992 to 2010 do Writeln(Y,' has ',DaysInYear(EncodeDate(Y,1,1)),' days.'); End.