Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datetime - datetime
Message
De
23/01/2001 01:35:09
 
 
À
23/01/2001 01:32:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00467137
Message ID:
00467147
Vues:
15
>>I am substracting two datetime values which gives a datetime. Now, with that value, I want to convert that in how many days and how many hours. Is there a function somewhere to do that?
>
>No, datetime arithmetic yields results in seconds. So:
lt2 - lt1 = lnSecondsDifference
>lnDaysDifference = INT(lnSecondsDifference / 86400)
>lnHoursRemainder = (lnSecondsDifference - (lnDaysDifference * 86400)) / 3600
Thanks also, I got two answers at the same time. :)
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform