You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, TimeSpan.Parse freaks out if you don't use fractional values (1.3:00:00 is valid, but 27:00:00 is not). This is not intuitive and can lead to disappointing results if you don't remember the "rules". We need something better!
ITimeParserparser=GetParser();//likely provided via DITimeSpanspan=parser.Parse("27:00:00");Console.WriteLine(span);// 1.03:00:00
Activity
prakash-patel commentedon Nov 25, 2014
I am not sure how much correct i am on above solution. Correct me if i am wrong on this solution. I try this in LINQPad.