Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange behavior of the week function
Message
De
29/07/2004 23:36:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00929454
Message ID:
00929460
Vues:
9
I suppose he means: "... despite the fact that 6 of the 7 days are in 2004".

The problem here is that the default definition for week() is: "The first week in the year is the week that contains Jan. 1".

>The week is 7 days.
>
>>With six days???
>>
>>
>>>>Why WEEK({^2004-12-31}) return 1 instead of 53
>>>
>>>Because this date belongs to the first week of 2005?
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform