Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hours & minutes from seconds
Message
 
À
13/09/1999 15:55:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00264179
Message ID:
00264213
Vues:
23
>I have a field that is the duration of a call in seconds. Does anyone have a calculation to convert this duration into hours and minutes?
>
>TIA
>
Kris,

One hour is 3600 seconds and one mintue is 60 seconds. So;

lnSeconds = YourTable.FieldName
lnHours = INT(lnSeconds/3600))
lnMinutes = INT(MOD(lnSeconds/3600)/60)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform