Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculate time total
Message
De
11/06/2001 18:58:15
 
 
À
11/06/2001 18:47:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00518132
Message ID:
00518136
Vues:
13
>Hi
> I have a table with 2 fields one is a name, the other is a character type that contains something like this 00:02'23 which mean that this person talked on the phone for 2 minutes and 23 seconds, now I want to know is a sum of how long every person talked on the phone can anybody help
>Thank you
>bill


Convert each pice to seconds:

? (2 * 60) + 23 = 143 seconds

Add up all the seconds, then convert back

? 143/60 = 2 && minutes
? 143%60 = 23 && seconds
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform