Is there a function that will allow easy time computations such as adding minutes to an hours/minutes variable to get a new hours/minutes or calcuating the difference between 2 inputs.
Is there a function that will allow easy time computations such as adding minutes to an hours/minutes variable to get a new hours/minutes or calcuating the difference between 2 inputs.
Use the datetime() function
Local time1,time2,time3
time1 = datetime()
time2 = datetime() && a few minutes or hours later
time3 = time2-time1
?time3/3600
Mike Gagnon
If you want to get the best response to a question, please check out FAQ184-2483 first
The datetimepicker ole control has a time-only mode of operation (the picker then becomes purely vestigial, but it does handle conversion of the entered time to the datetime() format).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.