How can I calculate the difference between two dates (in hours)?

chrisBchrisB USMember

With DateTime this would look something like this:

double diff = (DateTime.Now - myOtherDate).TotalHours;

But how can I achieve this with NSDate? In Obj-C there is something called NSTimeInterval but I can't find this in Xamarin.Mac.
Btw: I'm using the new Alpha 2.0 but I don't think that's related to this question.



Sign In or Register to comment.