Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine week in a month
Message
From
24/08/2017 18:57:07
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01653700
Message ID:
01653715
Views:
40
>>>>Well, let me beat the horse Dragan already targeted from another angle:
>>>>there are months with more than 28 days, which your code will press into 4 weeks. Some weeks of those I'd prefer not to work but count as holiday weeks as they have more than 7 days ;-)
>>>
>>>You are lucky that you only have to work 35 hours a week :). In American, we work 24/7 :).
>>
>>Then why create a function to create 24/8, 24/9 and 24/10 weeks as well ?
>
>Sorry I miss your point (if you are not joking). I could not find a case where my function (above) would return any other number but 1,2,3, or 4. Where do you get 8,9,10?

From the meaning of 24/7, which, unzipped, means "24 hours a day, 7 days a week" - and he urged you to surpass the productivity of that by cramming more days into a week.

There are months with five mondays. Just take anything longer than february and a monday on 1st or 2nd, for instance november 2016, or july 2017 (mondays on 3. 10. 17. 24. and 31. of the month).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform