Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to calculate elapsed time
Message
From
05/05/2006 11:27:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01016916
Message ID:
01119619
Views:
14
>>Depends on what and where you want to do I think. As you know already my suggestion is to use a much longer but safer one.
>>Cetin
>
>tnSeconds = val(inputbox('Type seconds'))
>set hours to 24
>set seconds on
>=messagebox( ttoc(ctot('0') + m.tnSeconds,2))
>=messagebox(substr(ttoc({^2006/01/01 00:00:00} + m.tnSeconds,3),12))
>
>I've compared both functions and his just one function longer but settings independent. So, I went with Sergey's implementation.
>
>Thanks again for your help.

OK here is my input:

86401

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform