Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting nos of seconds to time format.
Message
 
À
12/02/2001 00:59:11
Rahul Murarka
Sys-Con Engineering
Kolkata, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00474883
Message ID:
00474884
Vues:
15
Dear Rahul,

I can offer such function:

Function MSecToStr(liMSeconds)
local lnSec,lnMin,lnHour,lnOst
lnHour=int(liMseconds/3600000)
lnOst=liMseconds%3600000
lnMin=int(lnOst/60000)
lnSec=(lnOst%60000)/1000
return padl(allt(str(lnHour)),6,' ')+':'+;
padl(allt(str(lnMin)),2,'0')+':'+;
padl(allt(transform(lnSec,'99.999')),6,'0')

Best regars,
Vladimir Trukhin
Vladimir Trukhin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform