• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDate timeIntervalSinceNow problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSDate timeIntervalSinceNow problem (From: PCWiz <email@hidden>)

  • Prev by Date: Re: NSDate timeIntervalSinceNow problem
  • Next by Date: Re: NSDate timeIntervalSinceNow problem
  • Previous by thread: Re: NSDate timeIntervalSinceNow problem
  • Next by thread: Re: NSDate timeIntervalSinceNow problem
  • Index(es):
    • Date
    • Thread