I have an easy question. I need to get the interval in seconds between two dates. At the moment my implementation is the following:
' tStarted contain starting time. this is global
' variable and it's initalizes before this function call
tCurrentTime = Now
tSeconds = CDate(tCurrentTime - tStarted)
xxxDuration = Second(tSeconds) + Minute(tSeconds)*60 + Hour(tSeconds)*3600
The problem is that this function is working only in case if interval less than 24 hours. Would you mind to help me - how can implement the finction working for any interval?
ps: This is NOT homework!!! Just I'm not well expirianced in VBScript.
Thx in advance,