String translation problem in Timespan

0

In the system I am developing a user sends me a TimeSpan via Post, but when I get the String it should be TimeSpan and I apply a TimeSpan.Parse it gives the error:

  

"Could not parse TimeSpan because at least one of the   number components are out of range or contain too many   digits. "

The string is coming to me like this: 1416395054

    
asked by anonymous 19.11.2014 / 12:08

1 answer

1

Kaique, I ran a test and converted to "00: 02: 21.6395054"!

var tempo = new TimeSpan(1416395054);

    
19.11.2014 / 12:21