• 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: Inconsistencies with NSDate timeIntervalSinceReferenceDate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inconsistencies with NSDate timeIntervalSinceReferenceDate


  • Subject: Re: Inconsistencies with NSDate timeIntervalSinceReferenceDate
  • From: Dallas Brown <email@hidden>
  • Date: Wed, 21 Nov 2007 19:49:19 -0700

Oh man....
I can't believe I missed that...

Thanks, and sorry.




stephen joseph butler wrote:
On Nov 21, 2007 7:01 PM, Dallas Brown <email@hidden> wrote:
I seem to be getting some major inconsistencies when using NSDate
timeIntervalSinceReferenceDate....
Let me explain...

I have the following code:

NSTimeInterval now = [NSDate timeIntervalSinceReferenceDate];
NSLog(@"%@", [NSDate dateWithTimeIntervalSinceReferenceDate: now]);
NSLog(@"%@", [NSString stringWithFormat:@"%d", now]);

NSTimeinterval is a double, not an integer. Try @"%f". _______________________________________________

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
_______________________________________________

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: 
 >Inconsistencies with NSDate timeIntervalSinceReferenceDate (From: Dallas Brown <email@hidden>)
 >Re: Inconsistencies with NSDate timeIntervalSinceReferenceDate (From: "stephen joseph butler" <email@hidden>)

  • Prev by Date: Re: XCode 3 Debugger bug?
  • Next by Date: nodeForXPath leaks memory
  • Previous by thread: Re: Inconsistencies with NSDate timeIntervalSinceReferenceDate
  • Next by thread: RE: Inconsistencies with NSDate timeIntervalSinceReferenceDate
  • Index(es):
    • Date
    • Thread