Arash
2009-05-12 04:53:15 UTC
A service is scheduled to start at 15:00 and it will start at 15:00. It's On-Time.
Another service is scheduled to start at 15:00 but it will start at 15:30. The difference between these two time are 00:30 and it's Delayed.
It's OK with using Timespan in VS until I used this example:
A Service is scheduled to start at 23:50 but it will start at 00:30. We know the difference is 40 Minutes (00:40) but VS gives me 23:20!!!!
It will calculate the Hours and Minutes separately and gives you the 23 Hours difference!
And please note that the date is not important if you want to say that check if the time was in Today or if the time is Tomorrow. The Date is not important.
What should I do?
Thanks.