P
prasanta.bhowmik
Hello,
I created a object of TimeSpan only with minute and expected the
result in hours and minute, but its returning wrong result.
My Code is :
TimeSpan timeSpan = new TimeSpan(0,2400,0);
Console.WriteLine(timeSpan.Hours+':'+timeSpan.Minutes);
Its Displaying me the result is 16:00, but expected result is 40:00.
But if I am trying to create an object of 75 minutes the its resulting
the correct result of 1hours and 15 minuts.
So why the same code is not working with 2400 minute.
Please do the needful.
Thanks and Regards,
Prasanta
I created a object of TimeSpan only with minute and expected the
result in hours and minute, but its returning wrong result.
My Code is :
TimeSpan timeSpan = new TimeSpan(0,2400,0);
Console.WriteLine(timeSpan.Hours+':'+timeSpan.Minutes);
Its Displaying me the result is 16:00, but expected result is 40:00.
But if I am trying to create an object of 75 minutes the its resulting
the correct result of 1hours and 15 minuts.
So why the same code is not working with 2400 minute.
Please do the needful.
Thanks and Regards,
Prasanta