Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Work days between two dates - finally!
Message
De
10/06/2003 02:35:45
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
09/06/2003 13:50:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00797684
Message ID:
00798240
Vues:
27
>Hi Cetin,
>
>Glenn's Original Message#797684 of this thread:
>
>"I needed a solution to determine the number of workdays between two dates and have not been satisfied with the prevalent techniques. The ONLY reliable method required looping, and if the dates were very far apart it would have an impact on performance, There were several calculation methods sugested but when pressed all were found to produce errors."
>
>
>Fabio

Yes Fabio,
However it says "if the dates were very far apart it would have an impact on performance". I think refers to date range dependant loops. My loop however is only dependant on the number of workdays and at worst would be called 4 times (assuming you don't want 0 days working employee:) and no matter the date range is doesn't have an impact on performance, IOW fast enough (even think if it could be timed).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform