1,639
edits
JoshuaJSlone (talk | contribs) No edit summary |
JoshuaJSlone (talk | contribs) No edit summary |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 17: | Line 17: | ||
end | end | ||
function p. | function p.datesplitsuccinct(frame) | ||
InputSeparator = "," | InputSeparator = "," | ||
OutputSeparator = "・" | OutputSeparator = "・" | ||
| Line 39: | Line 39: | ||
Day = DateBits[3] | Day = DateBits[3] | ||
ThisDate = os. | ThisDate = os.time{ year = Year, month = Month, day = Day } | ||
tempdate = os.date ("*t", ThisDate) | |||
Day = tempdate.day | |||
--OutputText = OutputText .. trim(DateList[i]) | --OutputText = OutputText .. trim(DateList[i]) | ||
| Line 46: | Line 49: | ||
if Year==OldYear then | if Year==OldYear then | ||
if Month==OldMonth then | if Month==OldMonth then | ||
OutputText = OutputText .. Day --Only the day is different | OutputText = OutputText .. os.date("[[%B ", ThisDate) .. Day .. "|" .. Day .. "]]" --Only the day is different | ||
else | else | ||
OutputText = OutputText .. | OutputText = OutputText .. os.date("[[%B ", ThisDate) .. Day .. "]]" --Day and month are different | ||
end | end | ||
else | else | ||
OutputText = OutputText .. os.date("[[%Y]] [[%B ", ThisDate) .. Day .. "]]" --All three are different | |||
end | end | ||