Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Operations with timeformat variables.
Message
De
29/06/2001 13:14:00
Bob Lucas
The WordWare Agency
Alberta, Canada
 
 
À
29/06/2001 12:42:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00522838
Message ID:
00525259
Vues:
14
>Hello Al.
>I was testing the code that you gived me, but it return me a invalid result.
>I use this:
>

class=code
>ltDateTime1 = {^2001-06-22 09:00:00}
>ltDateTime2 = {^2001-06-23 15:00:00}
>lnTimeDifferenceInSeconds = ((ltDateTime2 - ltDateTime1)/3600)
>


>The result that it return me is: 30.0000
>The result of this must to be: 6
>What do you think is happening.?

You have two different days. Change the 22 to 23 in the first date and it will return 6!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform