4,595
edits
No edit summary |
No edit summary |
||
Line 66: | Line 66: | ||
--Writes that date based on what is given. | --Writes that date based on what is given. | ||
function writeDate( | function writeDate(dateTable) | ||
if | if dateTable[5] == "year" then | ||
return | return dateTable[4] | ||
elseif | elseif dateTable[5] == "month-year" then | ||
return | return dateTable[1].." ("..dateTable[2]..") "..dateTable[4] | ||
elseif | elseif dateTable[4] == "month-day-year" then | ||
return | return dateTable[1].." ("..dateTable[2]..") "..dateTable[3]..", "..dateTable[4] | ||
end | end | ||
end | end |