priyanka

priyanka

  • NA
  • 215
  • 119.8k

Time difference in c#

Jul 26 2018 8:51 AM
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

Answers (3)