T
tony
Hello!
I have this method ConvStdTimeToSec here that convert format hh:mm:ss into
total number of seconds and return it.
I just wonder if there exist a metod in the .NET framework that can be used
instead.
private int ConvStdTimeToSec(string time)
{
return int.Parse(time.Substring(0,2)) * 3600 +
int.Parse(time.Substring(3,2)) * 60 + int.Parse(time.Substring(6,2));
}
//Tony
I have this method ConvStdTimeToSec here that convert format hh:mm:ss into
total number of seconds and return it.
I just wonder if there exist a metod in the .NET framework that can be used
instead.
private int ConvStdTimeToSec(string time)
{
return int.Parse(time.Substring(0,2)) * 3600 +
int.Parse(time.Substring(3,2)) * 60 + int.Parse(time.Substring(6,2));
}
//Tony