Մոդուլ:Banana
Documentation for this module may be created at Մոդուլ:Banana/doc
local p = {}
local Date = require('Module:Date')._Date
local function how_long(date_text, d)
local now_date = Date('currentdate')
local then_date = Date(date_text)
local diff = then_date - now_date
local days = diff.age_days
if days > tonumber( d ) then
return 1
end
end
function p.main( frame )
local args = frame.args
return how_long( args[1], args[2] )
end
return p