Изменения
Перейти к навигации
Перейти к поиску
Строка 3:
Строка 3:
− local format = "j xg Y"
Строка 102:
Строка 101:
−
− local function date2txt(datein,format)
− if not isdate(datein) then return error("Some wrong date") end
− if format == nil then format = "j xg Y" end
− textout = "(" .. lang:formatDate(format,datein,true) .. ")"
− return textout
− end
−
− -- if (not isdate(jdate)) or (not isdate(gdate)) then return error("Some wrong date") end
Строка 304:
Строка 294:
− -- =p.testo(mw.getCurrentFrame():newChild{title="-",args={["year"]=2020,["month"]=2,["day"]=20}})+
− -- =p.testo(mw.getCurrentFrame():newChild{title="-",args={"20.02.2020"})
− function p.TeSto( frame )
− local args = getArgs(frame, { frameOnly = true })
− local strin = args[1]
− local datein = numstr2date(strin)
− local txtout = date2txt(datein)
− return txtout
− end
отмена правки 104498676 участника Carn (обс.)
local bool_to_number={ [true]=1, [false]=0 }
local bool_to_number={ [true]=1, [false]=0 }
local err = "-"
local err = "-"
local function purif(str)
local function purif(str)
return dateout
return dateout
end
end
function gri2jd( datein )
function gri2jd( datein )
end
end
return p