function getDays(year,month,day)
local leapYear={31,29,31,30,31,30,31,31,30,31,30,31}
local commonYear={31,28,31,30,31,30,31,31,30,31,30,31}
local templateYear
local count
if year %4 ==0 then
templateYear=leapYear
else
templateYear=commonYear
end
for i=1,month-1 do
count =count +templateYear[i]
end
count =count+day
return count
end