Re: NSDate timeIntervalSinceNow problem
Re: NSDate timeIntervalSinceNow problem
- Subject: Re: NSDate timeIntervalSinceNow problem
- From: Kyle Sluder <email@hidden>
- Date: Thu, 22 Oct 2009 20:13:07 -0700
On Oct 22, 2009, at 8:06 PM, PCWiz <email@hidden> wrote:
NSLog(@"%d", [time timeIntervalSinceNow]);
From NSDate.h:
typedef double NSTimeInterval;
You need a %f, not a %d.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden