Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Operations with timeformat variables.
Message
From
23/06/2001 18:37:54
 
 
To
23/06/2001 18:04:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00522838
Message ID:
00522843
Views:
17
>Hello at alls.
>Some of yours knows How can I make mathematical operations with variables type time?
>For example:
>12:30:25 p.m.-8:00:10 a.m.

If you convert your values to DateTimes, subtracting one from another yields the time difference in seconds which you can then convert to minutes and hours as required.
ltDateTime1 = {^2001-06-22 09:35:00}
ltDateTime2 = {^2001-06-23 15:38:21}

lnTimeDifferenceInSeconds = ltDateTime2 - ltDateTime1
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform