replace a switch by an array to get name of weekday
Merge pull request #339 from tttp/no-switch

replace a switch by an array to get name of weekday