Change the third line to my_hours += TimeSpan.Parse("00:25:07")
You can read about the expected format of TimeSpan.Parse()
on MSDN:
The s parameter contains a time interval specification in the form:
[ws][-]{ d | [d.]hh:mm[:ss[.ff]] }[ws]
So the bare minimum that is required is hh:mm
. When you put in 25:07
, it was interpreted as 25 hours, seven minutes, which is an illegal value (since hours need to be between 0-23).
Adding in 00:
in front changes it to 0 hours, 25 minutes and 7 seconds, which is now a legal value to parse.