Sorting it all Out Michael Kaplan's random stuff of dubious value Be sure to read the disclaimer here first!
The other day, someone sent me some mail with an interesting question:
Hi Micheal, was googling for an answer to this dev question "how do you detect the first day of the weekend and how many days there are in the weekend" Which is a good question. Cause GetLocaleInfo doesn't help there except to give you the first day of the week - but its not safe to assume the last two days are weekend days when your outside Europe etc. Any thoughts? Thought I'd ask you after reading your blog...
Hi Micheal, was googling for an answer to this dev question "how do you detect the first day of the weekend and how many days there are in the weekend"
Which is a good question. Cause GetLocaleInfo doesn't help there except to give you the first day of the week - but its not safe to assume the last two days are weekend days when your outside Europe etc.
Any thoughts? Thought I'd ask you after reading your blog...
My first thought was of Ursa Minor Beta, of which has been said:
It is a West Zone planet which by an inexplicable and somewhat suspicious freak of topography consists almost entirely of sub- tropical coastline. By an equally suspicious freak of temporal relastatics, it is nearly always Saturday afternoon just before the beach bars close.
But then I realized that I was not being tested about my Douglas Adams knowledge. :-)
My second thought was that perhaps Microsoft should pay to send me to various exotic places to see if I can find anywhere that has longer than a two-day weekend every week!
Then, back on Planet Earth I realized I should just come clean.
There is no locale data carried around by Windows that tracks the first day of the weekend, and there is nothing to represent the number of days in the weekend. As far as I know, every locale calls LOCALE_SDAYNAME6 and LOCALE_SDAYNAME7 the weekend, and it is always two days long.
Of course, given that LOCALE_IFIRSTDAYOFWEEK exists and that there are many locales that have different days that users would consider the "first day of the week", the whole term "weekend" is kind of unfortunate. And it does make me wonder if they even call it a weekend in every locale. And if it is not, then what happens to songs like Everybody's Working for the Weekend in those places? Or maybe Loverboy just didn't do as well in some locales....
Does anyone know better here? Is there some place that has a 3-day weekend every week, or somewhere that starts the weekend on Wednesday? I can fly there within the month. :-)
This post brought to you by "ʄ" (U+0284, a.k.a. LATIN SMALL LETTER DOTLESS J WITH STROKE AND HOOK)
"Muslims have their Sunday on the Friday, but I don't know which day they consider to be the first day of the week and which days they consider to be the weekend."
Muslim week (what would you call it? Even I don't know the proper term) starts on Friday which is also a weekend in most Muslim countries.
But this gives rise to another problem. In Pakistan weekend has shifted back and forth between Friday and Sunday at least half a dozen times. We even had two day long weekend in the 90s. This would make weekend 2.5 days long because of the half day on Friday and holidays on Saturday and Sunday.
So weekend are not fixed culturally or religiously, at least in my country. :(
From http://en.wikipedia.org/wiki/Week:
In Israel, the days of rest are Saturday and either Friday or Sunday, at the option of the individual.
I think this sentence completely broke down my attempts to assign working/weekend days to cultures. I think the Outlook team did solve this brilliantly.
Mihai: I'm from one of these countries, and it really was not so long ago!
Yet still the first question by kfarmer interests me:
Does anybody know, whether there are any _present_ cultures which do not have 7 days in week? I've read that in ancient times practically all options between 4 and 8 days per week were used, but today?