Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weeks in a year
Message
De
17/10/2006 17:28:14
 
 
À
17/10/2006 17:12:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01162585
Message ID:
01162738
Vues:
16
>>>I just saw my cell phone calendar (Nokia 3100)...and andvance to the year 2009 and ...bualaaaaá...: 53 Weeks.
>>>
>>>Is it wrong?...I don´t think so.
>>>
>>>Carlos Burgos
>>
>>Carlos,
>>
>>The problem is that the "week" may be considered differently (depending on what is the first day of the week, whether one need to count partial week, etc). This will give you expected 53:
>>
>>?week({^2009-12-31},3,DOW({^2009-01-01}))   &&53
>>
>>
>>But it is not the default approach used by foxpro.
>
>Accourting to you formula, all years have 53.

Well, what's 365/7 ? (52.14)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform