>What is the simplest (or just simple) way of calculating time difference in minutes? For example,
>
>
>*-- Store current Hours and Minutes portion of time
>nTime1 = substr(time(),1,5)
>*-- Store another time on Hours and Minutes
>nTime2 = substr(time(),1,5)
>
>
>Given that both time() reading were done in the same day, what is the difference between nTime2 and nTime1
>in minutes? (Note that I cannot use the Seconds() function)
>
>Thank you in advance for any help.
Do you mean this
http://berezniker.com/content/pages/visual-foxpro/converting-duration-seconds-time-format
If it's not broken, fix it until it is.
My Blog