Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to subtract hours, minutes, seconds from same?
Message
De
19/07/2000 19:32:54
 
 
À
19/07/2000 18:05:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00394549
Message ID:
00394639
Vues:
9
I have a universal function that resolves this problem for all versions of Fox.

The function (BASESECS()) takes two parameters DATE and TIME
I calculate the seconds difference between the DATE/TIME parameters passed and a "base" value (one that is significantly earlier than any date I would be dealing with in my business).

Then calculating the difference in seconds between two date/time combinations is simple the differnce between two calls to the BASESECS.

Of course it is much easier in a homogenous VFP environment using DATETIME variables as Ed has pointed out.
Sam Robbins BCRTC
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform