82.367
Bearbeitungen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 8: | Zeile 8: | ||
local start_date, end_date = p.splitDateString(s, year) | local start_date, end_date = p.splitDateString(s, year) | ||
start_date, end_date = p.completeDates(start_date, end_date, year) | start_date, end_date = p.completeDates(start_date, end_date, year) | ||
local sdf = lfd.humanToFormDate(start_date) | |||
local data = { | local data = { | ||
['Startdatum'] = | ['Startdatum'] = sdf, | ||
['Startjahr'] = lsd.getYear( | ['Startjahr'] = lsd.getYear(sdf), | ||
['Starttag'] = lsd.getMonthday( | ['Starttag'] = lsd.getMonthday(sdf) | ||
} | } | ||
if end_date then | if end_date then | ||
local edf = lfd.humanToFormDate(end_date) | |||
table.insert(data, { | table.insert(data, { | ||
['Enddatum'] = | ['Enddatum'] = edf, | ||
['Endjahr'] = lsd.getYear( | ['Endjahr'] = lsd.getYear(edf), | ||
['Endtag'] = lsd.getMonthday( | ['Endtag'] = lsd.getMonthday(edf) | ||
}) | }) | ||
end | end | ||
--mw.logObject(data) | |||
end | end | ||