Total # in seconds for a given time

Giganews Newsgroups
Subject: Total # in seconds for a given time
Posted by:  Graham (graham…@hotmail.com)
Date: Thu, 10 Jul 2003

I have a variable which can be in the format "mm:ss" or "hh:mm:ss".  I would
like to extract the total number of seconds from this.

Ie "01:30" would be 90 seconds.

Thanks in advance !

Replies