Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datetime - datetime
Message
De
23/01/2001 01:32:41
 
 
À
23/01/2001 01:11:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00467137
Message ID:
00467142
Vues:
12
>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?

Two datetimes gives you a result in seconds, not a datetime.

seconds = datetime1 - datetime2

days = INT(seconds) / 86400

hours = INT(seconds-86400*days) / 3600
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform