Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subtracting times
Message
De
30/10/2003 06:42:13
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00844412
Message ID:
00844446
Vues:
51
One line function with time rotation:
Firsttime = '18:00:00'

Chk1time = '08:03:45'
? GetTimeDiff(Firsttime,Chk1time)

PROCEDURE GetTimeDiff ( time1,time2 )

RETURN STUFF(STUFF(RIGHT(TTOC({^1900/01/01 00:00} + (EVALUATE('{^1900/01/01 '+m.time2+'}')-EVALUATE('{^1900/01/01 '+m.time1+'}'))%86400,1),6),5,0,':'),3,0,':')

ENDPROC
Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform