743
modifications
Modifications
Sauter à la navigation
Sauter à la recherche
aucun résumé de modification
function date.p2u( dt )
d = mw.text.split( dt.args[1], '/')
day = tonumber(d[1])
month = tonumber(d[2])
year = tonumber(d[3])
u = floor((year+4495)*365.25)- 241 + day +(month-5)*30 + _if(month>6, 1) + _if(month>9 and year%4==1, 1) - _if(month<5, 1) - _if(month < 4, 1) - _if(month < 2, 1)
return d
end