Time difference in c#
I need to find two time difference result in my project
When I am using
Timespan t1 = new Timespan(6:00:00)
Timespan t2 = new TImespan(13:00:00)Now when I need to calculate the resultTimespan result=t1-t2;
It showing 7 hours,its fineBut when I am using
Timespan t1=. new Timespan(22:00:00)
Timespan t2 = new TImespan(6:00:00)
Now when I need to calculate the result
Timespan result=t1-t2;
It showing 16 hours
Can u guys explain the reason behind this

Nitin SontakkeRank #264 · 9.6K reputationPosted Jul 26, 2018, 8:16 AM EDT
Jenith ThakkarRank #789 · 2.9K reputationPosted Jul 26, 2018, 5:41 AM EDT
Jaish MathewsRank #225 · 11K reputationPosted Jul 26, 2018, 7:41 AM EDT