Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to calculate elapsed time
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01016916
Message ID:
01119738
Views:
17
>>See below
>>
>>>
>>>function SecondsToTime
>>>lparameters tnSeconds
>>
>>RETURN IIF( m.tnSeconds > 86400, padl(int(m.tnSeconds/86400),2,'0') + ":", "") + ;
>>                    substr(ttoc({^2006/01/01 00:00:00} + m.tnSeconds,3),12)
>>
>>>endfunc
>
>Ok, thanks. I can make it to be one line <g>

You're missing the point. It's not about making it a one-liner but about not repeating the same code twice.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform