Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wish: Time format?
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00268296
Message ID:
00268871
Views:
17
Evan,

Those results can be further numerically manipulated. If all you want is display format of the time variable:

? ttoc( X, 2 )

>But the results are still unwieldy. The first result in your example is a datetime, the second is a numeric in seconds. If we have a time datatype these would be much simpler.
>
>* add 3 hours and 30 minutes to 4pm to get 7:30pm
> 4pm + 3:30 = 7:30pm
>
>* The difference (or lapsed time) between 7:30pm and 4pm is 3 hours and 30 mins
>7:30pm - 4pm = 3:30
>
>
>>? {, 17:30:32} + 400
>>? {, 17:30:32} - {,5:22:57}
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