RayT
asked on
TimeSpan Math
Is there a way to accurately return the diff between TimeSpans?
For example; inTrackLength = 00:54:16.1220000 and inTimeElapsed = 00:51:30.3910000
Dim TimeRemaining As TimeSpan = inTrackLength.Subtract(inT imeElapsed )
Since I am only displaying Hours:Minutes:Seconds
TimeRemaining is 00:02:45.7310000
I would expect TimeRemaining to be rounded to 00:02:46.
I guess my real question is how do I round-up TimeRemaining to the nearest second?
For example; inTrackLength = 00:54:16.1220000 and inTimeElapsed = 00:51:30.3910000
Dim TimeRemaining As TimeSpan = inTrackLength.Subtract(inT
Since I am only displaying Hours:Minutes:Seconds
TimeRemaining is 00:02:45.7310000
I would expect TimeRemaining to be rounded to 00:02:46.
I guess my real question is how do I round-up TimeRemaining to the nearest second?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER