• 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: Fastest way to convert an NSDate into an NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fastest way to convert an NSDate into an NSString


  • Subject: Re: Fastest way to convert an NSDate into an NSString
  • From: Nick Zitzmann <email@hidden>
  • Date: Mon, 25 Jan 2010 13:34:32 -0700

On Jan 25, 2010, at 1:23 PM, Keith Blount wrote:

> But either way suffers the same performance hit. So, my question is, does anyone know of a much faster and more efficient way of converting NSDates to NSStrings?

You didn't say you needed the date to be formatted, so have you tried something like [[NSNumber numberWithDouble:[date timeIntervalSinceReferenceDate]] stringValue]? Or maybe [NSString stringWithFormat:@"%f", [date timeIntervalSinceReferenceDate]]?

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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: 
 >Fastest way to convert an NSDate into an NSString (From: Keith Blount <email@hidden>)

  • Prev by Date: Re: Fastest way to convert an NSDate into an NSString
  • Next by Date: Re: Fastest way to convert an NSDate into an NSString
  • Previous by thread: Re: Fastest way to convert an NSDate into an NSString
  • Next by thread: Re: Fastest way to convert an NSDate into an NSString
  • Index(es):
    • Date
    • Thread