Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get seconds since midnight from time
Message
De
03/05/2011 13:48:10
 
 
À
03/05/2011 13:45:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01509262
Message ID:
01509263
Vues:
49
DECLARE LONG GetTickCount IN WIN32API
LOCAL LNAPIRETVAL, LNHOUR, LNMIN
LNTICK = GETTICKCOUNT()
TNHOURS = INT(LNTICK / 3600000)
IF (TNHOURS > 23)
	TNDAYS = INT(TNHOURS/24)
	TNHOURS = MOD(TNHOURS, 24)
ELSE
	TNDAYS = 0
ENDIF

LNTICK = MOD(LNTICK, 3600000)
TNMINUTES = INT(LNTICK / 60000)
TNSECOND1 = MOD(LNTICK, 60000) / 1000
TNSECONDS = int(tnsecond1)
THISFORM.TEXT1.VALUE= PADL(TNHOURS,2,"0");
	+ ALLTRIM(":")+PADL(TNMINUTES,2,"0");
	+ ALLTRIM(":")+PADL(TNSECONDS,2,"0")
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform