According to Lua manual 'wday (weekday, Sunday is 1),'.