Day of the week: Difference between revisions

→‎{{header|Lua}}: Added version without external dependencies
No edit summary
(→‎{{header|Lua}}: Added version without external dependencies)
Line 1,821:
2118
</pre>
 
=== Without external modules ===
Same output as above
<lang Lua>local dTab = {day = 25, month = 12}
local epochTime
for year = 2008, 2121 do
dTab.year = year
if os.date("%A", os.time(dTab)) == "Sunday" then
print(year)
end
end</lang>
 
=={{header|M4}}==
Anonymous user