Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Working with times
Message
 
 
To
04/12/1999 01:23:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00298612
Message ID:
00298686
Views:
11
Michael,

Forget all the versions of code posted to convert seconds to a string. This is much faster and easier:

set hours to 24
lnSeconds = ltTwo - ltOne && difference your two datetimes

lcHHMMSS = ttoc( {^1999-1-1 0:0:0} + lnSeconds, 2 ) && convert to string

Also, click the Computer icon and put your signature in there and you won't have to type it each time.

>Hi,
>My query is how to work with times in vfp.
>I want to subtract one time from another to get a time difference in hh:mm:ss. For example 10:35:21-05:35:20=05:00:01
>Is this possible?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform