12,564
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
| Line 87: | Line 87: | ||
return greg_year .. "-" .. greg_month .. "-" .. greg_day .. " (" .. greg_wday .. ")" | return greg_year .. "-" .. greg_month .. "-" .. greg_day .. " (" .. greg_wday .. ")" | ||
end | end | ||
--[[ The possible variables you can call are as follows: | |||
laenk_date.year | |||
laenk_date.month | |||
laenk_date.day | |||
laenk_date.week (calls the week number within the whole year) | |||
laenk_date.mweek (calls the week number within the month as values 1–5) | |||
laenk_date.wday (calls the day of the week as values 1–6) | |||
These will always return a number. You can use this number to index your language data using data["lfv"]["months"][laenk_date.month], for example, or just use it on its own when formatting dates with numbers. | |||
★ EXAMPLE FORMATTING ★ | |||
elseif parameters["lfv"] then | |||
if parameters["word"] then -- word format | |||
if laenk_date.month == 13 then -- 13th month date format | |||
else -- if months 1-12 | |||
end | |||
else -- number format | |||
-- PUT YOUR CODE TO FORMAT THE DATE HERE | |||
end | |||
]] | |||
-- Radestrian formatting | -- Radestrian formatting | ||
| Line 114: | Line 138: | ||
end | end | ||
end | end | ||
-- end of Radestrian formatting | |||
-- standard YYYY/MM/DD setting | -- standard YYYY/MM/DD setting | ||