Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Time Elapsed
Message
De
03/01/2000 16:11:51
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00311903
Message ID:
00311905
Vues:
30
>Can anybody help me to create a function that returns the time elapsed since midnight in HH:MM:SS and to midnight in the same format.
FUNCTION elapsed
LOCAL nSecsMidNight, nHours, nMinutes, nSeconds, cElapsed
nSecsMidNight = SECONDS()
nHours = INT(nSecsMidNight/3600)
nMinutes = INT((nSecsMidNight-nHours*3600)/60)
nSeconds = MOD(nSecsMidNight,60)
cElapsed = TRANSFORM(nHours,"@L 99") + ":" + ;
           TRANSFORM(nMinutes,"@L 99") + ":" + ;
           TRANSFORM(nSeconds,"@L 99")
RETURN cElapsed
Fred
Microsoft Visual FoxPro MVP

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

Click here to load this message in the networking platform