Yes, someone actually did this and I found it running on our server
You are viewing a single thread.
View all comments 50 points
Honestly the first one is the only one that works when people define the first day of the week differently. On the other hand, it does make you wonder. If Sunday is the first day of the week (as it is in many places) then how is it also part of the weekend?
15 points
But if you’re worried about locale, you can’t assume people use the string “Saturday” to describe Saturday either. That solution only works in English.
7 points
12 points
8 points
3 points