DaysInAYear
Adam Boduch
DaysInAYear
Moduł: DateUtils
program Foo;
{$APPTYPE CONSOLE}
uses
SysUtils, DateUtils;
var
i : Integer;
Year : Word;
begin
Year := YearOf(Now);
for I := 1000 to Year do
Writeln('W roku ', I, ' było ', DaysInAYear(i), ' dni');
Readln;
end.
Zobacz też: