Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Operations with timeformat variables.
Message
De
23/06/2001 18:37:54
 
 
À
23/06/2001 18:04:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00522838
Message ID:
00522843
Vues:
18
>Hello at alls.
>Some of yours knows How can I make mathematical operations with variables type time?
>For example:
>12:30:25 p.m.-8:00:10 a.m.

If you convert your values to DateTimes, subtracting one from another yields the time difference in seconds which you can then convert to minutes and hours as required.
ltDateTime1 = {^2001-06-22 09:35:00}
ltDateTime2 = {^2001-06-23 15:38:21}

lnTimeDifferenceInSeconds = ltDateTime2 - ltDateTime1
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform