Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select one from a group
Message
De
13/03/2000 16:25:15
 
 
À
13/03/2000 15:46:31
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvanie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00345076
Message ID:
00345146
Vues:
16
>What i eventually worked out was:
>
>str( (sum(val(substr(i_trn,1,at(":",i_trn)-1)))*3600+sum(val(substr(i_trn,at(":",i_trn)+1)))*60)/3600, 2) + ":"+ right(str(100+(sum(val(substr(i_trn,1,at(":",i_trn)-1)))*3600+sum(val(substr(i_trn,at(":",i_trn)+1)))*60)%60,3),2)
>
>This unwieldy mess works, but i'm going to see what i can do to prevent its use.

How about:

SELECT SUM(CTOT(i_trn)-DTOT(TTOD(CTOT(i_trn)))) AS timesum FROM yourtable

And to print the time:

? TTOC(DTOT(DATE()+timesum),2)
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