Re: [MonoTouch] No NSTimeInterval?

2011-12-12 Thread Jeff Stedfast
Hi technohead, In addition to Sebastien's answer, you can also cast NSDate to DateTime. Hope that helps, Jeff On Sat, Dec 10, 2011 at 7:19 PM, Sebastien Pouliot sebast...@xamarin.comwrote: NSTimeInterval is mapped to System.Double (i.e. `double` in C#). On Sat, Dec 10, 2011 at 6:53 PM,

Re: [MonoTouch] No NSTimeInterval?

2011-12-12 Thread technohead
Ah ok thanks. Maybe add a ToDateTime() method on the NSDate instance to make it discoverable via the IDE? thanks, Dennis -- View this message in context: http://monotouch.2284126.n4.nabble.com/No-NSTimeInterval-tp4181491p4188094.html Sent from the MonoTouch mailing list archive at Nabble.com.

[MonoTouch] No NSTimeInterval?

2011-12-10 Thread technohead
Hi, I'm trying to convert some Obj C code which uses NSDate and NSTimeInterval objects, and noticed that there is no Monotouch wrapper for NSTimeInterval. Is there a way to convert an NSDate to a C# DateTime or is there another method for calculating the difference in value of two NSDate values

Re: [MonoTouch] No NSTimeInterval?

2011-12-10 Thread technohead
Think I found a solution, comparing the property SecondsSinceReferenceDate on the NSDate objects. -- View this message in context: http://monotouch.2284126.n4.nabble.com/No-NSTimeInterval-tp4181491p4181500.html Sent from the MonoTouch mailing list archive at Nabble.com.

Re: [MonoTouch] No NSTimeInterval?

2011-12-10 Thread Sebastien Pouliot
NSTimeInterval is mapped to System.Double (i.e. `double` in C#). On Sat, Dec 10, 2011 at 6:53 PM, technohead dj_technoh...@yahoo.com wrote: Think I found a solution, comparing the property SecondsSinceReferenceDate on the NSDate objects. -- View this message in context: