Modulo:Webarchive/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
riscrivo funzione dateFormat |
m taglio formati inutili in italiano |
||
Riga 109:
--[[--------------------------< formatDate >-----------------------
Verifica il formato di una data (dmy
la riformatta in dmy, altrimenti restituisce il valore così com'è
]]
Riga 119:
try_year = tonumber(split[1])
if try_year and try_year > 1900 and try_year < 2200 then -- iso
y, m, d = split[1], month_localized[tonumber(split[2])], split[3]
end
else
Riga 125:
if tableLength(split) == 3 then
try_year = tonumber(split[3])
if try_year and try_year > 1900 and try_year < 2200
end
end
end
if tonumber(d) == 1 then d = '1º' end
return
end
|