narasimman g

narasimman g

  • 1.6k
  • 160
  • 351.8k

C# Time Calculation Logic Required :(

May 30 2011 6:17 AM
Hi All,

Always i feel Time calculation bit hectic than anything..

Please consider the following Rules for Time Calculation:


1.
Working hours is only considered 11.30 hours (One full day is 11.30 not 24 hours)...

if date A = 24/05/2011 05:08:56
if date B = 26/05/2011 07:08:58

2.
only fully day is 11.30( 10.30 - 22.00) ...So for first and last day we have to subract and add the time (we can not take it as 11.30 hours).

Output

I want to subract Two dates and Produce Output as Hours:Minutes:Seconds

Advanced Thanks

Answers (3)