Home All Groups Group Topic Archive Search About

How to get the Time Duration out of this feed?

Author
6 Jul 2006 4:25 PM
Joe J.
Hi everyone,

I need a little bit of help with this problem.

I've got a time durations feed, which comes in this format
(minutes:seconds):

Example, there is only 5 values:
00:45
01:15
00:12
00:53
03:42

I need to find the average duration from these 5 values.

Can someone help me to figure out how to do this in VB.NET?

Thanks
Joe

Author
7 Jul 2006 6:25 AM
GhostInAK
Hello Joe J.,

You may want to convert the durations into a single unit of measurement (like
minutes), and then compute the average.
Look into String.Split(). 

-Boo

Show quoteHide quote
> Hi everyone,
>
> I need a little bit of help with this problem.
>
> I've got a time durations feed, which comes in this format
> (minutes:seconds):
>
> Example, there is only 5 values:
> 00:45
> 01:15
> 00:12
> 00:53
> 03:42
> I need to find the average duration from these 5 values.
>
> Can someone help me to figure out how to do this in VB.NET?
>
> Thanks
> Joe