Re: NSDate timeIntervalSinceNow problem
Re: NSDate timeIntervalSinceNow problem
- Subject: Re: NSDate timeIntervalSinceNow problem
- From: "Stephen J. Butler" <email@hidden>
- Date: Thu, 22 Oct 2009 22:10:35 -0500
On Thu, Oct 22, 2009 at 10:06 PM, PCWiz <email@hidden> wrote:
> NSDate *time = [myDict objectForKey:@"time"];
> NSLog(@"%d", [time timeIntervalSinceNow]);
>
> And the result is this:
>
> 2009-10-22 21:01:18.949 TestApplication[8263:a0f] -2097072
>
> Not sure what's wrong here, I've taken a look at some examples and they seem
> to do the same thing.
The method returns a NSTimeInterval, which is a double, but the %d
format is for integers.
_______________________________________________
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