Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting nos of seconds to time format.
Message
 
To
12/02/2001 00:59:11
Rahul Murarka
Sys-Con Engineering
Kolkata, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00474883
Message ID:
00474884
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform