Bürokraten, Oberflächenadministratoren, SMW-Administratoren, SMW-Kuratoren, SMW-Editoren, Oversighter, Administratoren, Widget-Bearbeiter
215.197
Bearbeitungen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
||
| Zeile 25: | Zeile 25: | ||
end | end | ||
function dateParsing( | function dateParsing(s, year) | ||
-- Parses a date down where s is the datestring and year can be nil or string | -- Parses a date down where s is the datestring and year can be nil or string | ||
local d=split(s, '-') | local d=split(s, '-') | ||
local sd | local sd | ||
local ed | |||
sd = human_to_form_date(d[0]) | |||
local data = { | local data = { | ||
["Startdatum"] = sd, | ["Startdatum"] = sd, | ||
["Startjahr"] = get_year(sd), | ["Startjahr"] = get_year(sd), | ||
["Starttag"] = get_monthday(sd), | ["Starttag"] = get_monthday(sd), | ||
["Tschubba"] = len(d) | |||
} | } | ||
if len(d) > 1 then | |||
if | |||
ed=human_to_form_date(d[1]) | ed=human_to_form_date(d[1]) | ||
data["Enddatum"] = ed | data["Enddatum"] = ed | ||
Bearbeitungen