Content deleted Content added
m local t, sn, zd; |
simplify args; os.date("!*t") (with exclamation mark) is UTC and should be used although it won't make much difference here |
||
Line 1:
-- Module:Zodiac date
local p = {}
function p.main( frame )
local signNumber = tonumber(frame.args[1]) or 1
local year = tonumber(frame.args[2]) or os.date("!*t").year
--<span style="color:red">red writing</span>
if (year < 2015) or (year > 2050) or ((year == 2050) and (signNumber == 10)) then
|