-- How many dates can Scribunto fit in the allowed 50 MB of memory?
local Date = require('Module:Date')._Date
local function main(frame)
local count = tonumber(frame.args1]) or 31000
local jd = 2451545
local dates = {}
for i = 1, count do
datesi = Date('juliandate', jd)
jd = jd + 1
end
return 'Number of dates = ' .. count
end
return { main = main }
-- How many dates can Scribunto fit in the allowed 50 MB of memory?
local Date = require('Module:Date')._Date
local function main(frame)
local count = tonumber(frame.args1]) or 31000
local jd = 2451545
local dates = {}
for i = 1, count do
datesi = Date('juliandate', jd)
jd = jd + 1
end
return 'Number of dates = ' .. count
end
return { main = main }