Re: Fastest way to convert an NSDate into an NSString
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